Solved

# VBA to go to another worksheet in same workbook via command button

Posted on 2013-12-03
587 Views
Folks,
Another senior moment in paradise. What is the code for a command button that takes me to anoter worksheets I forgot.....
0
Question by:Frank Freese
• 2

LVL 43

Accepted Solution

Saqib Husain, Syed earned 250 total points
worksheets("____").select

or

worksheets("____").activate
0

LVL 15

Assisted Solution

JimFive earned 250 total points
ActiveWorkbook.Worksheets("WorksheetName").Activate
0

Author Comment

great - two good solutions to help this ole man out! I am very grateful
0

Author Closing Comment

great job! thanks a lot. Both solutions got me what I needed
0

## Featured Post

### Suggested Solutions

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…