LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
Norman Jones
 
Posts: n/a
Default How do I open a workbook in a specific sheet

Hi Petter,

As a starting point, see David McRitchies Table of Contents page at:

http://www.mvps.org/dmcritchie/excel/buildtoc.htm


---
Regards,
Norman



"PetterSn" wrote in message
...
What I want is to open different sheets every time, like a database. I
have
informations from various objects in every sheet, and want an adress that
points to the sheet of interest. I want to link the workbook, with the 200
sheets, to a map that when clicked on a house, the worksheet with updated
information about that house is opened.

Norman Jones skrev:

Hi Petter,

Try:
'=============
Private Sub Workbook_Open()
Me.Sheets("Sheet1").Activate '<<==== CHANGE
End Sub
'<<=============

Change Sheet1 to the name of the required sheet.

This is workbook event code and should be pasted into the workbook's
ThisWorkbook module *not* a standard module or a sheet module):

Right-click the Excel icon on the worksheet
(or the icon to the left of the File menu if your workbook is maximised)
Select 'View Code' from the menu and paste the code.
Alt-F11 to return to Excel.

If you are not familiar with macros, you may wish to visit David
McRitchie's
'Getting Started With Macros And User Defined Functions' at:

http://www.mvps.org/dmcritchie/excel/getstarted.htm


---
Regards,
Norman


"PetterSn" wrote in message
...
I want to open an excel- workbook and start directly in a specified
sheet
in
a workbook with 200 sheets. Is there a way to name the file so I know
which
sheet is the active?






 
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
Aways open workbook on sheet 1 ??? benson68 Excel Discussion (Misc queries) 3 January 12th 06 06:17 PM
Use Sheet CodeNames to Select Sheet in Different Workbook Randy Excel Discussion (Misc queries) 1 June 10th 05 12:17 AM
How do I open a specific worksheet using windows exp... vertblancrouge Excel Discussion (Misc queries) 4 April 19th 05 08:55 PM
Unprotect Workbook Kent Excel Discussion (Misc queries) 1 February 4th 05 01:07 AM
Hyperlink to specific sheet in Excel Web File jd17 Links and Linking in Excel 0 December 8th 04 09:03 PM


All times are GMT +1. The time now is 04:14 PM.

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

About Us

"It's about Microsoft Excel"