+ Reply to Thread
Results 1 to 4 of 4

How to highlight and entire column and make the macro perform on each cell ?

  1. #1
    Forum Contributor
    Join Date
    12-03-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    107

    How to highlight and entire column and make the macro perform on each cell ?

    Ok so i have this code that when the user puts the active cell in a certain cell and runs the macro, the string data beside the active cells will merge in one cell. So if i have the active cell in A1, and B1 contains the string "Apple" and B2 contains "Orange" and B3 contains "Lemon" when i run the macro, B4 will contain "Apple,Orange,Lemon"

    here is the code:

    Please Login or Register  to view this content.
    End Sub

    my problem is that when i reach around 1000 rows, it would be tiresome for me to run each macro on Cell A1 up to cell A1000. Is there a way where i can just highlight the entire cell A1 up to cell a1000 and make the above macro run in the respective way?

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: How to highlight and entire column and make the macro perform on each cell ?

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    12-03-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    107

    Re: How to highlight and entire column and make the macro perform on each cell ?

    brilliant!

  4. #4
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: How to highlight and entire column and make the macro perform on each cell ?

    you are welcome. If satisffied please mark your post as SOLVED

+ 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