Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 313
Default Go To Cell Reference on Worksheet Open

I need some code that when I click on a worksheet tab that I go directly to
cell B3 each time on open. I have tried this code but it always opens at the
last EXCEL cell referenced before exiting the worksheet (i.e. h35).

Private Sub Worksheet_Open()
Application.Goto Reference:="R3C2"
End Sub

Can someone help with the correct code for this?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Go To Cell Reference on Worksheet Open

Try this:-

Private Sub Worksheet_Activate()
Range("B3").Select
End Sub

Right click the sheet tab, view code and paste this in.

Mike

"Tony" wrote:

I need some code that when I click on a worksheet tab that I go directly to
cell B3 each time on open. I have tried this code but it always opens at the
last EXCEL cell referenced before exiting the worksheet (i.e. h35).

Private Sub Worksheet_Open()
Application.Goto Reference:="R3C2"
End Sub

Can someone help with the correct code for this?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I set up a workbook to open on a cell reference every time CAHM Excel Discussion (Misc queries) 2 November 30th 07 05:41 PM
Active cell as a reference to open a worksheet LaDdIe Excel Worksheet Functions 6 March 15th 07 07:06 PM
Can you force a spreadsheet to open to a specific cell reference? KatJ Setting up and Configuration of Excel 3 November 8th 06 11:32 PM
Macro to open files using cell reference nyctransplant Excel Programming 3 April 12th 06 03:49 PM
Worksheet reference (i.e placing worksheet name in a cell) Roger Roger Excel Worksheet Functions 1 January 20th 05 03:40 PM


All times are GMT +1. The time now is 10:20 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"