LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Simple worksheet selection question???


Hi all, How do i select a worksheet based on a cells contents?, if i
have cell A1 containg a dropdown list of all the worksheets Like Week1,
Week2 etc how do i create the code to call a work sheet based on that
name instead of Worksheets("Week1").Select, so something like
Sub weekselect()
Dim t As Worksheet
t.Name = Range("f10").Value
Worksheets(t).Visible=True
Worksheets(t).Select
Worksheets("Week Selection").Visible = False
End With
End Sub

Regards,
Simon


--
Simon Lloyd
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.excelforum.com/member.php...fo&userid=6708
View this thread: http://www.excelforum.com/showthread...hreadid=552518

 
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
Quick VBA Worksheet Change Event or Selection Question: Damil4real Excel Worksheet Functions 6 November 17th 09 10:28 PM
IF formula-simple question; simple operator Rich D Excel Discussion (Misc queries) 4 December 6th 07 03:36 PM
Simple selection, but hey, I'm no guru!! Director Excel Worksheet Functions 1 August 18th 05 01:56 PM
Simple Simple Excel usage question BookerW Excel Discussion (Misc queries) 1 June 23rd 05 10:06 PM
Simple Selection Macro Jason Excel Programming 3 October 9th 04 09:52 AM


All times are GMT +1. The time now is 12:15 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"