LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default How to open a specific worksheet via code from workbook_open



"Martin Parker" wrote:

I have a combobox which is populated with all the worksheets within the
workbook. The controlsource of the combobox is linked to a cell on a
worksheet.

My question is how do i make the Excel workbook open at the worksheet which
is detailed within the combobox linked cell.

I've been previously using in the Workbook_Open procedu-

Worksheets("Sheet1").activate but how do i incorporate the linked cell
reference to open the worksheet the user has chosen via the combobox.

Hope you can help!

Cheers


managed to solved this one myself!!

Worksheets(Worksheets("sheet1").Range("c5").Value) .Activate

Is this the best way of doing this??
 
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
Code to open Notes database and find a specific doc RayMills Excel Programming 0 June 29th 07 01:48 PM
Open Specific Worksheet cargor Excel Discussion (Misc queries) 4 July 12th 06 06:04 PM
Open on specific worksheet Adrian Excel Discussion (Misc queries) 1 October 27th 05 05:33 PM
VB code to make Excel open in a specific worksheet OscarC Excel Programming 2 December 7th 04 09:57 PM
VBA code to open a specific worksheet MohK Excel Programming 2 October 29th 03 06:02 PM


All times are GMT +1. The time now is 12:16 AM.

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"