Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
 
Posts: n/a
Default Selecting Worksheet by it's value originally given

Using this piece of code, I was able to name a worksheet by the value
in A1 in worksheet "Glist".

With ActiveSheet
.Name = Sheets("GList").Range("A1").Value
End With

Now I want to pull this worksheet up again,
but instead of doing a...Sheets("Test").Select.

I want
to do something like Sheets ("Glist").Range("A1").Value.Select. Make
sense?

I want to pull up the sheet by the value in A1, Sheet-Glist, but not
actually spell out the name. Can this be done?

  #2   Report Post  
Arvi Laanemets
 
Posts: n/a
Default Selecting Worksheet by it's value originally given

Hi

....
SheetName=Sheets ("Glist").Range("A1").Value
Sheets(SheetName).Select
....


Arvi Laanemets



wrote in message
oups.com...
Using this piece of code, I was able to name a worksheet by the value
in A1 in worksheet "Glist".

With ActiveSheet
.Name = Sheets("GList").Range("A1").Value
End With

Now I want to pull this worksheet up again,
but instead of doing a...Sheets("Test").Select.

I want
to do something like Sheets ("Glist").Range("A1").Value.Select. Make
sense?

I want to pull up the sheet by the value in A1, Sheet-Glist, but not
actually spell out the name. Can this be done?



  #3   Report Post  
Kevin Lehrbass
 
Posts: n/a
Default Selecting Worksheet by it's value originally given

Hi Mike,

I'm going to send you an excel file (zipped) that's related to your question.
It was actually the answer to someone else's question a while a go and then
I started playing around with it.
You can change the sheet name and file name by typing the value in the cell.

Cheers,
--
Kevin Lehrbass

www.spreadsheetsolutions4u.com


"Arvi Laanemets" wrote:

Hi

....
SheetName=Sheets ("Glist").Range("A1").Value
Sheets(SheetName).Select
....


Arvi Laanemets



wrote in message
oups.com...
Using this piece of code, I was able to name a worksheet by the value
in A1 in worksheet "Glist".

With ActiveSheet
.Name = Sheets("GList").Range("A1").Value
End With

Now I want to pull this worksheet up again,
but instead of doing a...Sheets("Test").Select.

I want
to do something like Sheets ("Glist").Range("A1").Value.Select. Make
sense?

I want to pull up the sheet by the value in A1, Sheet-Glist, but not
actually spell out the name. Can this be done?




Reply
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
VBA code to Add data to exsiting worksheet jonesaa05 Excel Discussion (Misc queries) 7 October 14th 05 01:20 PM
macro to copy and edit then delete a worksheet lschuh Excel Discussion (Misc queries) 13 July 27th 05 09:02 PM
Search/Match between 2 x separate Worksheets and populate result in third worksheet Alan Bartley Excel Discussion (Misc queries) 1 April 11th 05 05:21 AM
Weekly Transaction Processing Ralph Howarth Excel Worksheet Functions 4 January 19th 05 05:37 AM
copyright and worksheet protection dow Excel Discussion (Misc queries) 2 January 3rd 05 03:07 PM


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