Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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
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
Need help tidying up a report alexm999 Excel Discussion (Misc queries) 2 March 2nd 06 02:51 PM
Help Tidying up formula Paul Excel Worksheet Functions 3 January 13th 06 04:55 PM
tidying up VBA Chris Excel Programming 1 December 23rd 04 01:42 PM
Slow code operation when refering to different sheets Deep Frayed Morgues Excel Programming 2 October 15th 04 05:46 PM
VBA code refering to columns by name SkipAtPNS Excel Programming 2 February 27th 04 11:32 PM


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