Results 1 to 4 of 4

Thread: Cell Navigation

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2005
    Posts
    2

    Cell Navigation

    I am a super newbie when it comes to vbscript so bear with me.

    I am trying to use either a macro or some script to activate a given cell using the MoveAfterReturn function.

    When I enter a value in B11 and hit enter on the keyboard, I want the next active cell to be C6.

    So far I have:
    VB Code:
    1. Public Sub Workbook_Activate()
    2. Range("B11").Select
    3. MoveAfterReturn = True
    4. Application.Goto Reference:=Worksheets("VERBS-REG").Range("c6")
    5.  
    6. End Sub
    This works if I run the script in MVB, but not if I hit enter.

    Any help would be great.






    Edit: Added [vbcode][/vbcode] tags. - Hack
    Last edited by Hack; Nov 16th, 2005 at 07:25 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width