Consulting

Results 1 to 5 of 5

Thread: GOTO A different Worksheet named in cell A1

  1. #1
    VBAX Regular
    Joined
    Mar 2007
    Posts
    32
    Location

    GOTO A different Worksheet named in cell A1

    Please somebody help me
    I've renamed 100 worksheets with numbers 1 thru 100, (worksheet 1= 1..worksheet 2=2..etc). I have a macro that generate a number from 1 to 100 and put the result in Cell A1, says 58 for example..After run the macro I want the worksheet which is in cell 1 ...58 in this example Active..It's possible?

    Thank you very much

  2. #2
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,064
    Location
    Hi Audax, A quick couple of questions if you don't mind. How will you remember what the sheets are for, if its just a number? Do you have an index somewhere?
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [vba]

    Worksheets(Range("A1").Value).Activate
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  4. #4
    VBAX Regular
    Joined
    Mar 2007
    Posts
    32
    Location
    Thank for your interest in help me Aussiebear

    Not really..I have 50 questions with 50 answers, the first 50 worksheets are the questions...1 in each worksheet..the other 50 worksheet are the answers...then when I run the macro..send me to the worksheet originated randomized.

    I hope you understood..if not let me know please

  5. #5
    VBAX Regular
    Joined
    Mar 2007
    Posts
    32
    Location
    Thank you a lot...It's work

Posting Permissions

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