View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default formatting the view of a worksheet

Private Sub SectionAHelpButton_click()
Application.Goto _
Reference:=Sheets("Instructions").Range("SectionAH elp"), _
Scroll:=True
End Sub


--
Regards,
Tom Ogilvy

"Pat" wrote in message
...

I have a button on a worksheet that selcts a cell on
another sheet.

I want to display the cell so that it is in the upper left
corner of the window, but I can't find any method to do
this. Any help appreciated.

Code so far (works fine):

Private Sub SectionAHelpButton_click()
Sheets("Instructions").Select
Sheets("Instructions").Range("SectionAHelp").Selec t
End Sub

but SectionAHelp might appear at the bottom of the page,
and I want it to appear at the top left.