Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
tidying up code and refering macros
Hi all, I have created a macro and form to select roads that comply with certain conditions and then display the output, and select a random selection of that data. Within the form you can choose one of 13 inspectors and 1 of 10 days (Monday to friday week1 or week2). When the OK button is pressed it reads all the data in the spreadsheet cells. One of my buttons selects all inspectors and all days and prints the output. As my road list is 3000 roads, and it has to do this 130 times, it takes quite a while. What i want to do is read the data first time only, and for all subsequent times, use the data held in the vatrialbes, however i cannot use gosub, and if i use the call procedure i have to difine the variables, however there are too many for this. Is there a simpler way !!?!?! Please help I attach a very trimmed down version of the spreadsheet +-------------------------------------------------------------------+ |Filename: Test List.zip | |Download: http://www.excelforum.com/attachment.php?postid=3593 | +-------------------------------------------------------------------+ -- philbennison ------------------------------------------------------------------------ philbennison's Profile: http://www.excelforum.com/member.php...o&userid=25148 View this thread: http://www.excelforum.com/showthread...hreadid=386413 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Need help tidying up a report | Excel Discussion (Misc queries) | |||
Help Tidying up formula | Excel Worksheet Functions | |||
tidying up VBA | Excel Programming | |||
Slow code operation when refering to different sheets | Excel Programming | |||
VBA code refering to columns by name | Excel Programming |