Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
Please help. I keep getting an error from my visual basics code. Click on a
button on a sheet takes you to another sheet within the same workbook then directly to specific cells. Don't know whats wrong with the code. Private Sub CommandButton1_Click() Application.Goto ActiveWorkbook.Sheets("WGTN & KAPITI").Activate ActiveSheet.Range("Garry").Activate End Sub -- Shirl, NZ |
#2
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
Either:
Private Sub CommandButton1_Click() Application.Goto ActiveWorkbook.Sheets("WGTN & KAPITI").Range("Garry"), _ scroll:=true 'or false End Sub or Private Sub CommandButton1_Click() with ActiveWorkbook.Sheets("WGTN & KAPITI") .Activate .range("garry").Activate 'or .select end with End Sub Shirl wrote: Please help. I keep getting an error from my visual basics code. Click on a button on a sheet takes you to another sheet within the same workbook then directly to specific cells. Don't know whats wrong with the code. Private Sub CommandButton1_Click() Application.Goto ActiveWorkbook.Sheets("WGTN & KAPITI").Activate ActiveSheet.Range("Garry").Activate End Sub -- Shirl, NZ -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Meaning of On Error Goto 0 | Excel Discussion (Misc queries) | |||
Visual basics | Excel Discussion (Misc queries) | |||
Can visual basics hide rows based on cell values? | Excel Discussion (Misc queries) | |||
Visual Basics - Automating Specific Sheet Names | Excel Discussion (Misc queries) | |||
Combo box in Visual Basics | Excel Discussion (Misc queries) |