+ Reply to Thread
Results 1 to 5 of 5

Macro button to go to the last non-blank cell in column

  1. #1
    Registered User
    Join Date
    06-23-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    70

    Macro button to go to the last non-blank cell in column

    I want to have macro form button with a code on it that when click the selected cell will be the last non-empty cell on the Column B. Note B1 is non-empty. because that's where I'm keeping the visibility of the button. Also the Column A is pre-filled with data(ID No.) thats why i need the code to check the Column B. Please let me know if there are more information needed.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Macro button to go to the last non-blank cell in column

    Please Login or Register  to view this content.
    Last edited by mehmetcik; 12-14-2014 at 09:33 AM.

  3. #3
    Registered User
    Join Date
    06-23-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: Macro button to go to the last non-blank cell in column

    Thanks for the response, i was able to get some help from existing forums.

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Macro button to go to the last non-blank cell in column

    Hmm

    Not sure that that is your answer.

    Try the two buttons on this spreadsheet

    The buttons use the codes above.

    Button one selects B5

    Button Two uses my code and selects B7. The last non empty cell.
    Attached Files Attached Files
    Last edited by mehmetcik; 12-14-2014 at 09:39 AM.

  5. #5
    Registered User
    Join Date
    06-23-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: Macro button to go to the last non-blank cell in column

    I was just reviewing my file, apparently my requirement is incomplete. Good thing you already replied. You are right, button 1 is the initial solution i got. Button2 is what i need, i just realized that there are empty cells in between non-empty cells, so it has to determine to extreme last cell that doesn't follow any non-empty cells. Thanks for the help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 03-17-2013, 02:52 PM
  2. macro to find first blank cell in a column cut the value from left adjacent column
    By willykin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-01-2012, 09:23 AM
  3. AutoFill Macro when blank cell in different column
    By b_rosso in forum Excel General
    Replies: 1
    Last Post: 08-18-2011, 01:11 PM
  4. VBA Macro Button that takes you to the next available blank cell in a specific column
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-05-2011, 01:50 PM
  5. Macro to copy column until a blank cell
    By VBAnoob88 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-22-2010, 08:45 AM

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