1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Macro or vba to delete columns

Discussion in 'Business Applications' started by ImaGrump, Jun 13, 2019.

Thread Status:
Not open for further replies.
  1. ImaGrump

    ImaGrump Thread Starter

    Joined:
    Nov 14, 2017
    Messages:
    122
    I export a csv file to my computer which I need to import into my Access database. It is about 73 columns wide and I need to delete almost half of the columns. They are not used in the database.

    I have been doing it manually, but that would seem to me to be something that could easily be automated.....if you know what to do. I've tried but without any knowledge of the procedures, it is not easily learned from a tutorial. My first attempt worked like a charm but I screwed up trying to save it; I have not been able to duplicate since.

    Can someone help? It will be greatly appreciated.

    THANK YOU !!
     
  2. ImaGrump

    ImaGrump Thread Starter

    Joined:
    Nov 14, 2017
    Messages:
    122
    While waiting for a response, I continued to work on this. Using the "Record Macro" method I was able to accomplish this. Thank you.

    Now I need to delete rows based on certain column cell contents. I presume that vba will be necessary to do this with an "if" statement. Again, I haven't a clue as to where to start or exactly how to do it, but I'll try.

    Since I am still using Macro's or vba to "delete". I am not going to mark this thread as solved just yet, but keep it open a while. Help if you can; it will be appreciated.

    THANKS !!
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1228541

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice