PC Review


Reply
Thread Tools Rate Thread

Compile error macro is 111K. how do I fix macro

 
 
=?Utf-8?B?RHJpY29uMQ==?=
Guest
Posts: n/a
 
      17th Feb 2007
How can I fix the macro to run. I know 64K is the maximum allowed so how can
split into two macro?
 
Reply With Quote
 
 
 
 
Jim Cone
Guest
Posts: n/a
 
      18th Feb 2007

Using my x-ray vision and psychic abilities, I have determined you can reduce
the size of your code by eliminating all of the "Select" statements and also
looping thru cell ranges instead of specifying each cell that you need to change.
After doing the above, splitting the code will be easier to accomplish and
may even not be needed.
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


"Dricon1" <(E-Mail Removed)>
wrote in message
How can I fix the macro to run. I know 64K is the maximum allowed so how can
split into two macro?
 
Reply With Quote
 
=?Utf-8?B?Z2VyZG1haW4=?=
Guest
Posts: n/a
 
      18th Feb 2007
Hi,

I am surprised that you can write a macro of this size in the first place.
You to make it easier to debug, I generall ybreak the code into several
sub-routines like:

sub Main()

call Initiate
call get_Input
call Process
call Cleanup

end sub

Chances are that each of these Sub-routines will again be broken down
further, and will call internal Functions to simplify the code further.

A proper, logical design makes coding and debugging so much easier.

Hope this helps.
And there will usually be a number of internal Functions.
--
Gerd


"Dricon1" wrote:

> How can I fix the macro to run. I know 64K is the maximum allowed so how can
> split into two macro?

 
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
Macro Compile Error =?Utf-8?B?TWFydmlu?= Microsoft Excel Programming 1 29th Aug 2006 06:10 PM
macro - compile error =?Utf-8?B?anJmZWFnaW5AeWFob28uY29t?= Microsoft Word Document Management 2 15th Mar 2006 09:25 PM
macro compile error =?Utf-8?B?SmFuIEhvbG1zdHJvbQ==?= Microsoft Excel Programming 3 9th Jun 2005 01:46 PM
Compile Error Custom Macro =?Utf-8?B?UmljaA==?= Microsoft Powerpoint 3 3rd Jun 2004 03:46 PM
Macro: Compile Error Yannick Microsoft Word New Users 1 27th Jul 2003 05:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:11 PM.