+ Reply to Thread
Results 1 to 3 of 3

Need to loop through all populated columns

  1. #1
    Registered User
    Join Date
    07-22-2011
    Location
    Vancouver, Washington
    MS-Off Ver
    Excel 2007
    Posts
    5

    Question Need to loop through all populated columns

    I am not entirely sure what I am doing here, kinda new to VBA for Excel. I have some basics going for me but not sure how to create a loop for the below code. If someone could help me out that would be great, I could use this as a good example for other loops I want to create. Also if someone has a great online resource for basics on creating a loop taht would be a great addition. Thanks.

    Below I am looping through columns B:ZZ and using text to columns to change the SQL output from General to Numeric value. This was created using a macro recorder so I am sure there is some bloat. After the loop is completed I am then resizing the columns and bolding the first row of headers.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Need to loop through all populated columns

    you can use something like this to loop trought columns
    Please Login or Register  to view this content.
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  3. #3
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Need to loop through all populated columns

    hi Analyst_Jim, will that be of any help:

    Please Login or Register  to view this content.
    Last edited by watersev; 12-30-2011 at 07:49 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1