PC Review


Reply
Thread Tools Rate Thread

How could I optimize this VBA project ?

 
 
Jey
Guest
Posts: n/a
 
      7th Jan 2006
Hi !

I have a little issue with a workbook : it takes wayyyy too long to
update...

So I have a sheet called "Map", where I must update comments on certain
cells... the problem comes from the 2 For... Next statements that take a lot
of time to process, because I have to activate 4 different sheets each
time... I have about 150 system, and 12 planets for each, that's 1800
possibilities !!!
Can I get the same result with another method ?

I tought about create another sheet where I could retrieve all infos I need,
but I can't figure out how to do this...

Currently, I have :

For each system
Computing coordinates => call the sheet "system"
For planet = 1 to 12
Retrieve the owner of the planet, and the alliance he is from =>
test with 2 sheets, "player" and "alliance"
Retrieve if this alliance is friendly or not => table on another
sheet, "diplo"
if friendly color of the line will be blue, otherwise, red...
keep in the memory the line and the shape
Next planet
Concatenate all the lines from the 12 planets, and copy this to the
comment of range(coordinates)
apply shape and colors to the comment
Next system

I can send the .xls file if you need the "true VBA" code


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fix/Optimize =?Utf-8?B?Qm9iYnlHZW5l?= Windows XP General 10 7th May 2007 09:03 AM
Optimize =?Utf-8?B?QmlsbCBnb2xk?= Microsoft Frontpage 3 25th Dec 2005 08:30 PM
Open an Existing Project (Remove a project from the project list) =?Utf-8?B?ZHJvb3Bl?= Microsoft Dot NET 1 19th Jan 2005 07:36 AM
Optimize??? Oxymel of Squill Windows XP New Users 1 13th Dec 2003 05:30 PM
Re: Optimize Mattias Sjögren Microsoft VB .NET 2 22nd Aug 2003 09:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:03 AM.