Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default Loading chosen Sheets into an array

I have a macro which loads sheet names into an array called SheetArray. The
loading portion of the macro is manual as seen below. I want to set this up
so that the user is prompted with a userform with a list of available sheets
in the workbook. The user can the pick the desired sheets (check box or
whatever) and then the # of chose sheets will then make their way Dim stmt
below and the actuall sheets themselves will make their way into the array
below through some sort of loop. Any ideas how to do this.

Dim SheetArray(0 To 3)

SheetArray(0) = Sheet3.Name
SheetArray(1) = Sheet5.Name
SheetArray(2) = Sheet6.Name
SheetArray(3) = Sheet17.Name

Thanks

EM
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default Loading chosen Sheets into an array

Actually nevermind, I will simply use John Walkenbachs printing userform and
modify it for my needs. Thanks.

http://j-walk.com/ss/excel/tips/tip48.htm

EM

"ExcelMonkey" wrote:

I have a macro which loads sheet names into an array called SheetArray. The
loading portion of the macro is manual as seen below. I want to set this up
so that the user is prompted with a userform with a list of available sheets
in the workbook. The user can the pick the desired sheets (check box or
whatever) and then the # of chose sheets will then make their way Dim stmt
below and the actuall sheets themselves will make their way into the array
below through some sort of loop. Any ideas how to do this.

Dim SheetArray(0 To 3)

SheetArray(0) = Sheet3.Name
SheetArray(1) = Sheet5.Name
SheetArray(2) = Sheet6.Name
SheetArray(3) = Sheet17.Name

Thanks

EM

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Loading chosen Sheets into an array

As long as you recognize that that doesn't use a Userform. It uses a
dialogsheet. The controls are from the forms toolbar.

--
Regards,
Tom Ogilvy


"ExcelMonkey" wrote in message
...
Actually nevermind, I will simply use John Walkenbachs printing userform
and
modify it for my needs. Thanks.

http://j-walk.com/ss/excel/tips/tip48.htm

EM

"ExcelMonkey" wrote:

I have a macro which loads sheet names into an array called SheetArray.
The
loading portion of the macro is manual as seen below. I want to set this
up
so that the user is prompted with a userform with a list of available
sheets
in the workbook. The user can the pick the desired sheets (check box or
whatever) and then the # of chose sheets will then make their way Dim
stmt
below and the actuall sheets themselves will make their way into the
array
below through some sort of loop. Any ideas how to do this.

Dim SheetArray(0 To 3)

SheetArray(0) = Sheet3.Name
SheetArray(1) = Sheet5.Name
SheetArray(2) = Sheet6.Name
SheetArray(3) = Sheet17.Name

Thanks

EM



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default Loading chosen Sheets into an array

Yes I know that Tom. That is why I was trying to avoid it in the first
place. But decided due to time pressure that it would suffice.

EM

"Tom Ogilvy" wrote:

As long as you recognize that that doesn't use a Userform. It uses a
dialogsheet. The controls are from the forms toolbar.

--
Regards,
Tom Ogilvy


"ExcelMonkey" wrote in message
...
Actually nevermind, I will simply use John Walkenbachs printing userform
and
modify it for my needs. Thanks.

http://j-walk.com/ss/excel/tips/tip48.htm

EM

"ExcelMonkey" wrote:

I have a macro which loads sheet names into an array called SheetArray.
The
loading portion of the macro is manual as seen below. I want to set this
up
so that the user is prompted with a userform with a list of available
sheets
in the workbook. The user can the pick the desired sheets (check box or
whatever) and then the # of chose sheets will then make their way Dim
stmt
below and the actuall sheets themselves will make their way into the
array
below through some sort of loop. Any ideas how to do this.

Dim SheetArray(0 To 3)

SheetArray(0) = Sheet3.Name
SheetArray(1) = Sheet5.Name
SheetArray(2) = Sheet6.Name
SheetArray(3) = Sheet17.Name

Thanks

EM




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Loading chosen Sheets into an array

Guess I was confused when you said:

I will simply use John Walkenbachs printing userform


<g

--
Regards,
Tom Ogilvy


"ExcelMonkey" wrote:

Yes I know that Tom. That is why I was trying to avoid it in the first
place. But decided due to time pressure that it would suffice.

EM

"Tom Ogilvy" wrote:

As long as you recognize that that doesn't use a Userform. It uses a
dialogsheet. The controls are from the forms toolbar.

--
Regards,
Tom Ogilvy


"ExcelMonkey" wrote in message
...
Actually nevermind, I will simply use John Walkenbachs printing userform
and
modify it for my needs. Thanks.

http://j-walk.com/ss/excel/tips/tip48.htm

EM

"ExcelMonkey" wrote:

I have a macro which loads sheet names into an array called SheetArray.
The
loading portion of the macro is manual as seen below. I want to set this
up
so that the user is prompted with a userform with a list of available
sheets
in the workbook. The user can the pick the desired sheets (check box or
whatever) and then the # of chose sheets will then make their way Dim
stmt
below and the actuall sheets themselves will make their way into the
array
below through some sort of loop. Any ideas how to do this.

Dim SheetArray(0 To 3)

SheetArray(0) = Sheet3.Name
SheetArray(1) = Sheet5.Name
SheetArray(2) = Sheet6.Name
SheetArray(3) = Sheet17.Name

Thanks

EM






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
Tab color changes to distinguish multiple sheets chosen kibrit Excel Discussion (Misc queries) 2 June 29th 09 08:04 PM
Array Formula creates error if too may cell chosen ExcelMonkey Excel Programming 3 March 30th 06 12:20 AM
Loading array into list box r wilcox Excel Programming 5 June 20th 05 11:14 PM
Loading Excel Array from VB Array Faster ExcelMonkey[_3_] Excel Programming 3 January 22nd 04 02:49 AM
Loading 3 Dimensional Array Alan Beban[_3_] Excel Programming 0 August 31st 03 03:00 AM


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