+ Reply to Thread
Results 1 to 5 of 5

Name box to get active cell

  1. #1
    Registered User
    Join Date
    02-10-2018
    Location
    toronto ontario
    MS-Off Ver
    office 2010
    Posts
    73

    Name box to get active cell

    Hi all
    I am trying to work out a VBA formula for a command button to get the active cell from the NameBox and use it to find the next blank row below that range

    example active cell in NameBox is M224 Rows B 225, B226 ,B227 have data then it would go to B228 as the first blank row
    when I push the command button

    the object to do the above is to close Userform 2 and open userform 1

    thanks for any help

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,110

    Re: Name box to get active cell

    Not sure what the name box has to do with anything as the active cell is just Activecell. You can use its Row property to get your start point, then loop from there testing to see if each cell is empty.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Expert ByteMarks's Avatar
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    3,284

    Re: Name box to get active cell

    You can get the next blank row using something like this, or are you saying that there will be blank rows after the activecell but before other data?
    Not sure where the userforms fit in with this either?


    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    02-10-2018
    Location
    toronto ontario
    MS-Off Ver
    office 2010
    Posts
    73

    problem with saving userform to work sheet active row and column

    I have a userform that gets data from a open work sheet I would like on save' userform to write a txtbox value back onto the sheet
    sheet on the same row as the userform the data came from below is the code but I get error on the offset =Txtyes
    Also I have attached a sample work sheet Any help Please and Thanks

    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,308

    Re: Name box to get active cell

    ... something like that ?
    Please Login or Register  to view this content.

+ 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: 2
    Last Post: 03-13-2020, 05:28 AM
  2. [SOLVED] Simple macro/VBA to copy cell above active cell and then move active cell one right...
    By planetjed in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-15-2018, 02:02 PM
  3. [SOLVED] If active cell value dosn't match in range then highlight the active cell
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-18-2017, 12:38 AM
  4. Replies: 4
    Last Post: 07-03-2015, 04:27 AM
  5. Replies: 2
    Last Post: 12-23-2012, 09:26 AM
  6. [SOLVED] VBA - Can I select a new active cell based on the value of the current active cell?
    By GrumpyOldBastard in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-08-2012, 07:05 PM

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