Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help with looping


Hello everyone,

I need some help w/ looping. I have a macro that is creating a new
workbook with worksheets for reports. It is automatically going to
create these sheets, but the variables are not always the same. I am
thinking of doing a loop but not sure how to write it. It needs to
loop based on a group of data that is going to change.

in combobox1 I have a list of names. I have the macro to create the
tab and to rename the tab. However, I need it to run the macro for
each selection in combobox1. The list changes based on the inputs from
the user. The macro, "Generate_Report" is what generates the tabs. How
would I write the Loop command to run Generate_Report using A:A as the
source data?

combobox1 has 50 available options (but this can change from day to
day), I need to Loop Generate_Report for each of the listed options in
the combobox.


--
dok112
------------------------------------------------------------------------
dok112's Profile: http://www.excelforum.com/member.php...o&userid=10581
View this thread: http://www.excelforum.com/showthread...hreadid=480865

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
Looping Maggie[_6_] Excel Discussion (Misc queries) 6 October 2nd 08 09:14 PM
Looping David T Excel Discussion (Misc queries) 2 August 30th 06 10:51 PM
Next For looping in a If Jean-Jerome Doucet via OfficeKB.com Excel Programming 7 July 12th 05 07:46 PM
Not Looping Through teresa Excel Programming 2 June 5th 05 10:33 PM
Looping Gusset Gadder Excel Programming 2 December 11th 04 09:16 PM


All times are GMT +1. The time now is 05:21 AM.

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

About Us

"It's about Microsoft Excel"