Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open Spreadsheet

Status
Not open for further replies.

Dickx

Technical User
Aug 24, 2001
33
US
How to open an Excel spreadsheet to a specific worksheet and cell address.
 
save it on a specific worksheet and cell address

Rgds, Geoff

"Errors have been made....Others will be blamed"

Please read FAQ222-2244 before you ask a question
 
Rather than explaining it, I would suggest that you record a macro of you doing exactly that manually, then you can view the code for yourself.

-----------------------------------------------------
"It's true, its damn true!"
-----------------------------------------------------
 
Put the following code in the workbook_open event

Code:
Private Sub Workbook_Open()
Worksheets("YourSheetHere").Range("YourCellHere").Activate
End Sub

To put this code in place, press Alt+F11 to open the VBA editor, right click on the ThisWorkbook and select Edit Code. From the options at the top left of the right hand pane, select Workbook. Put the code above in this space.

Save file.



Cheers,
Dave

Probably the only Test Analyst on Tek-Tips

animadverto vos in Abyssus!

Take a look at Forum1393 & sign up if you'd like
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top