close

I want a specific cell to be selected when a worksheet is opened, so
the user can go right to work without having to find that cell, select
it, etc. I searched the newsgroup but can't find any articles on how
to do this. Can somebody help?

Thanks,
Ron M.You need a VBA procedure to do this. In the ThisWorkbook code
module, enter

Private Sub Workbook_Open()
' change the sheet and cell reference as desired
Application.Goto Worksheets(quot;Sheet2quot;).Range(quot;B2quot;), True
End Sub--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
quot;Ron M.quot; gt; wrote in message oups.com...
gt;I want a specific cell to be selected when a worksheet is
gt;opened, so
gt; the user can go right to work without having to find that cell,
gt; select
gt; it, etc. I searched the newsgroup but can't find any articles
gt; on how
gt; to do this. Can somebody help?
gt;
gt; Thanks,
gt; Ron M.
gt;
Hi Ron

Something like the following code copied into the This Workbook module,
would take the user to cell G10 of Sheet on opening the file

Private Sub Workbook_Open()
Sheets(quot;Sheet1quot;).Range(quot;G10quot;).Select
End Sub

Amend to suit the starting location you want.
To copy the code in, Right click on any tab in the Workbook and choose
View Code, to bring up the VB Editor.
If the Project Explore is not visible, press Ctrl R to bring it up.
Locate your Workbook in the Explorer, and double click on the
ThisWorkbook module.
Copy the Code above and Paste into the Code pane (Press F7 to bring it
up, if not visible)
Press the Excel icon at top left to return to your sheet.
Save the file.

--
Regards

Roger Govierquot;Ron M.quot; gt; wrote in message oups.com...
gt;I want a specific cell to be selected when a worksheet is opened, so
gt; the user can go right to work without having to find that cell, select
gt; it, etc. I searched the newsgroup but can't find any articles on how
gt; to do this. Can somebody help?
gt;
gt; Thanks,
gt; Ron M.
gt;
I know how to enter the code, I just didn't know what the code was.

You guys should get medals! Thanks!

Ron M.

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()