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: 27
Default Input box to enter worksheet name ??????

Hi,

I have an Excel file where I need to compare any two worksheets
selected by any given user:

Is the following logic possible?

1. An input box asks the user to enter the name of the worksheet, and
the input gets stored as a Variant - I've already done this.

eg: User inputs "Jan06"

2. Now I want to reference the worksheet "Jan06".

eg: I want to say something like
If Worksheet.("Jan06").Cells(2,1) = "CAR122" then ..........
etc etc etc

I tried the following but it didnt work:

Sub Autopopulate()
Dim a, b, c As Variant
Dim Sourcesheet As String

Sourcesheet = Application.InputBox("Enter the exact name of the
worksheet to transfer data FROM", Title:="Input Worksheet name",
Type:=2)

Set SS = Application.Worksheets.Sourcesheet

.................................................. ......
.................................................. ...........


Endsub()

Can someone help please?

Thanks in advance,

Joe.

PS: Is there something like an Activesheet function to work it around ?

 
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
cannot enter input and cannot stop scroll bobbyangelo Excel Discussion (Misc queries) 3 October 13th 08 10:49 PM
How do you enter input range for a histogram Irishrose28 Excel Discussion (Misc queries) 1 August 4th 06 02:41 PM
How do you enter input range for a histogram Irishrose28 Excel Discussion (Misc queries) 0 August 4th 06 02:21 PM
how can I move cells after data input without using enter or tab mull Excel Discussion (Misc queries) 1 March 2nd 05 05:53 PM
Please need HELP - Need to add and INPUT BOX so that users need to enter a PASSWORD to use a workbook Marcello do Guzman Excel Programming 2 December 9th 03 05:30 PM


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