+ Reply to Thread
Results 1 to 2 of 2

How to goto in VBA

  1. #1
    Registered User
    Join Date
    03-14-2005
    Posts
    1

    How to goto in VBA

    Hello,
    I wonder if anyone can help.
    I need to goto column A on the same line that I am on no matter how many colums I am to the right, I thought it would be something like range([a,*])

    Any ideas
    thanks
    Gazzer

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Gazzer,

    The code below with set the active cell to Column "A" in the same Row.

    R = ActiveCell.Row
    ActiveSheet.Cells(R, 1).Select

    To use the code with a given Range...

    With Range("$D$10")
    R = .Row
    .Cells(R, 1).Select
    End With


    Hope this helps,
    Leith Ross
    Last edited by Leith Ross; 03-15-2005 at 05:02 AM.

+ 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