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: 88
Default How can I reduce repetative code

i have set up a userform with OptionButton for all the weeks of the year to
save data too, with a command Button with If OptionButton1=true then -and
code-
Instead of having to repeat the same steps over and over again eg: open new
workbook / name new workbook / copy data to new workbook /save workbook /
close workbook. My question: Can I set up a variable for week Number and
associate that into the file name, therby saveing approx 40 lines of code for
each week no.
 
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
How can I reduce repetative code leerem Excel Discussion (Misc queries) 4 August 3rd 08 12:20 PM
how to reduce execution time of my code? [email protected] Excel Programming 6 August 9th 07 03:17 PM
Any way to reduce/combine in this code? ADK Excel Programming 2 July 11th 07 03:47 PM
Reduce code Excel 2003 - SPB Excel Discussion (Misc queries) 2 May 10th 07 10:43 PM
Reduce file size by removing comments from code? Shadhi Excel Programming 2 May 26th 05 09:42 PM


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