+ Reply to Thread
Results 1 to 3 of 3

Select next non empty cell from selected list range with VBA

  1. #1
    Registered User
    Join Date
    06-14-2016
    Location
    Limassol, Cyprus
    MS-Off Ver
    2016
    Posts
    2

    Exclamation Select next non empty cell from selected list range with VBA

    I want to create a vba or a command button rule that either highlights a cell from a selected range or shows the selected cell in a different cell.

    More specifically, i have 7 names in cells A1:A7. I want everytime I run the code, to get the next available name on the list (either highlighted or shown in a different cell). When the selection reaches A7 which is the last cell, then i want it to go back to cell A1 and start all over again.

    What code can i use? And is it better on a vba or on a command button?

    Thank you

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,962

    Re: Select next non empty cell from selected list range with VBA

    If your 'other cell' is B7:

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    06-14-2016
    Location
    Limassol, Cyprus
    MS-Off Ver
    2016
    Posts
    2

    Re: Select next non empty cell from selected list range with VBA

    Thank you so much!

+ 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. How to select next empty cell in row for a specific range?
    By 9mouse in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-15-2016, 08:28 AM
  2. I need a macro that pastes a selected range in the next empty cell until row 2000
    By pasqualebaldi in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-04-2015, 04:33 PM
  3. [SOLVED] Select non-empty cell range with VBA
    By mexykanu in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-09-2013, 10:24 AM
  4. How to select the last cell in a currently selected range
    By Launchnet in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-20-2011, 05:09 PM
  5. Select Empty Cell Within a DropDown List Box's Range
    By bdb1974 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2010, 06:58 PM
  6. Replies: 1
    Last Post: 05-15-2006, 04:10 AM
  7. select first empty cell in a range
    By Shawn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-12-2005, 08:05 PM

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