Assigning a macro to a button

H

hberg

I would like to record a command to bring me to a different sheet on the same
workbook
 
C

Chip Pearson

Use Application.Goto. For example,

Application.Goto ThisWorkbook.Worksheets("Sheet3").Range("A1"), True

If you don't need to go to a specific cell, you can Activate the
desired sheet:

Worksheets("Sheet4").Activate



Cordially,
Chip Pearson
Microsoft MVP 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com
[email on web site]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top