+ Reply to Thread
Results 1 to 3 of 3

How to get each column value till end of list

  1. #1
    Registered User
    Join Date
    04-30-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    1

    How to get each column value till end of list

    Hello Everyone,

    I am new to excel macros. Can someone help me with a code to get each column value in excel till the end column. Thanks in advance!!

    The sheet looks like this:

    A B C D E F G H

    1 2 3 4 5 6 7 8 9
    2 3 4 5 6 7 8 9 0


    Where A, B, C etc are column names/values
    I want the code to traverse till last column (which is H here) untill its null and then fetch the column value in a msgbox or text file

    Thanks!!

  2. #2
    Registered User
    Join Date
    05-07-2012
    Location
    Delhi
    MS-Off Ver
    Excel 2003 and Excel 2007
    Posts
    62

    Re: How to get each column value till end of list

    Hi,

    Are you looking for any VBA code?
    If Yes, please provide your excel version 2003 or 2007?

  3. #3
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,786

    Re: How to get each column value till end of list

    Perhaps a macro like this?

    Please Login or Register  to view this content.
    Will save values to to a txt file named "Book1" to a folder called "Temp". Folder must excist or you will get an error.

    Change folder and file name to suit your needs.

    Alf

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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