A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

drop down menu containing worksheet names



 
 
Thread Tools Display Modes
  #1  
Old January 29th, 2005, 01:25 AM
J-Rad
external usenet poster
 
Posts: n/a
Default drop down menu containing worksheet names

hi all,

i'd love it if someone could show off their excel prowess on this one.

what i'm trying to do is have a workbook with multiple "common"
worksheets and one main worksheet. on the main worksheet i want to
have a drop-down menu where you select which common worksheet you want
to pull data from to populate the main worksheet.

the common worksheets will always be the exact same structure and will
contain a weeks worth of data. every week i want to "move and copy" a
common worksheet so that i have one worksheet for evey week. i don't
want to have to make a million worksheets at the inception of the
workbook.

what i think will be the tricky part is having the drop-down menu
automatically update so at any point in time i would be able to select
any common worksheet available.

ready to learn...

-jarrad

  #2  
Old January 29th, 2005, 05:30 AM
Gary Brown
external usenet poster
 
Posts: n/a
Default

Sounds like you should be looking at the INDIRECT function in HELP.
HTH,
Gary Brown

"J-Rad" wrote in message
ups.com...
hi all,

i'd love it if someone could show off their excel prowess on this one.

what i'm trying to do is have a workbook with multiple "common"
worksheets and one main worksheet. on the main worksheet i want to
have a drop-down menu where you select which common worksheet you want
to pull data from to populate the main worksheet.

the common worksheets will always be the exact same structure and will
contain a weeks worth of data. every week i want to "move and copy" a
common worksheet so that i have one worksheet for evey week. i don't
want to have to make a million worksheets at the inception of the
workbook.

what i think will be the tricky part is having the drop-down menu
automatically update so at any point in time i would be able to select
any common worksheet available.

ready to learn...

-jarrad



  #3  
Old January 29th, 2005, 10:10 AM
Bob Phillips
external usenet poster
 
Posts: n/a
Default

Add a combobox from the controls toolbar, and add this code to it

Private Sub ComboBox1_DropButtonClick()
Dim sh
With Me.ComboBox1
.Clear
For Each sh In ThisWorkbook.Sheets
.AddItem sh.Name
Next sh
End With
End Sub

You can use its click event and do your stuff there.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Gary Brown" wrote in message
...
Sounds like you should be looking at the INDIRECT function in HELP.
HTH,
Gary Brown

"J-Rad" wrote in message
ups.com...
hi all,

i'd love it if someone could show off their excel prowess on this one.

what i'm trying to do is have a workbook with multiple "common"
worksheets and one main worksheet. on the main worksheet i want to
have a drop-down menu where you select which common worksheet you want
to pull data from to populate the main worksheet.

the common worksheets will always be the exact same structure and will
contain a weeks worth of data. every week i want to "move and copy" a
common worksheet so that i have one worksheet for evey week. i don't
want to have to make a million worksheets at the inception of the
workbook.

what i think will be the tricky part is having the drop-down menu
automatically update so at any point in time i would be able to select
any common worksheet available.

ready to learn...

-jarrad





  #4  
Old February 1st, 2005, 03:25 AM
J-Rad
external usenet poster
 
Posts: n/a
Default

Bob-

thanks so much...that's exactly what i needed.

my project is going to be perfect now.

thanks a million

-jarrad

Bob Phillips wrote:
Add a combobox from the controls toolbar, and add this code to it

Private Sub ComboBox1_DropButtonClick()
Dim sh
With Me.ComboBox1
.Clear
For Each sh In ThisWorkbook.Sheets
.AddItem sh.Name
Next sh
End With
End Sub

You can use its click event and do your stuff there.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Gary Brown" wrote in message
...
Sounds like you should be looking at the INDIRECT function in HELP.
HTH,
Gary Brown

"J-Rad" wrote in message
ups.com...
hi all,

i'd love it if someone could show off their excel prowess on this

one.

what i'm trying to do is have a workbook with multiple "common"
worksheets and one main worksheet. on the main worksheet i want

to
have a drop-down menu where you select which common worksheet you

want
to pull data from to populate the main worksheet.

the common worksheets will always be the exact same structure and

will
contain a weeks worth of data. every week i want to "move and

copy" a
common worksheet so that i have one worksheet for evey week. i

don't
want to have to make a million worksheets at the inception of the
workbook.

what i think will be the tricky part is having the drop-down menu
automatically update so at any point in time i would be able to

select
any common worksheet available.

ready to learn...

-jarrad




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Worksheet Menu Bar LAF General Discussion 1 November 4th, 2004 09:08 PM
defining cell names in more than one worksheet Spearfisher Worksheet Functions 2 June 10th, 2004 03:37 AM
&[tab] Usage Twist Jody Worksheet Functions 4 January 10th, 2004 06:21 PM
Sheet Names Joseph M. Yonek Worksheet Functions 6 January 3rd, 2004 02:15 AM


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.