+ Reply to Thread
Results 1 to 3 of 3

Move cursor to first blank cell

  1. #1
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Question Move cursor to first blank cell

    1. My cursor is at the top of a range of data. I need to move the cursor down "n" rows to the first blank cell.
    2. At that position, I need to enter a formula from the cell immediately above to the top of the range but excluding the header label?
    Thank You.

  2. #2
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: Move cursor to first blank cell

    your cursor in A1.do you want to go donw nth row or n+1st row and then move right and find the first blank cell.

    on assumption you want n+1st row etc then try this macro

    If necessary change the entry in inputbox for n

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Re: Move cursor to first blank cell

    Quote Originally Posted by venkat1926 View Post
    your cursor in A1.do you want to go donw nth row or n+1st row and then move right and find the first blank cell.

    on assumption you want n+1st row etc then try this macro

    If necessary change the entry in inputbox for n

    Please Login or Register  to view this content.
    I used the following code to move the cursor to the cell I need:
    Selection.End(xlDown).Select
    Selection.Offset(1, 2).Select
    I there a better way to move down? In Excel I would press the End key once & the Down key twice. How do I do this in VBA?
    Thank You.

+ 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