Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Macro Limitations

I have a macro that has a limitation of 5000 lines. Is it possible to create
a larger macro (greater than 5000 lines) ?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Macro Limitations

A macro really shouldn't be more than 200 to 500 line. Yo ushould make
multiple subroutines and call one from another


sub main()


call sub1()
call sub2()
call sub3()
end sub

sub sub1()

end sub

sub sub2()

end sub

sub sub3()

end sub

"Cinderella" wrote:

I have a macro that has a limitation of 5000 lines. Is it possible to create
a larger macro (greater than 5000 lines) ?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 396
Default Macro Limitations

You're probably copy-pasting analogous code over and over again.

Try to avoid that.

Try to group commands that reappear into another procedure, that you call in
your main procedure. If you want, you can use parameters in these procedures,
if some things are just "a little be different".

I know this is rather vague, but so is your question... ;-)

--
Wigi
http://www.wimgielis.be = Excel/VBA, soccer and music


"Cinderella" wrote:

I have a macro that has a limitation of 5000 lines. Is it possible to create
a larger macro (greater than 5000 lines) ?

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
Macro limitations Mary Frances Excel Discussion (Misc queries) 8 June 3rd 08 04:17 PM
Tab Name Limitations robb Excel Discussion (Misc queries) 2 February 14th 08 04:38 PM
Limitations of auto-open (xlstart) macro Tygox1 Excel Programming 3 October 31st 06 05:56 AM
Macro as alternative to limitations of data table... Tripp Knightly Excel Programming 2 June 22nd 04 06:13 PM
Limitations in UDF:s Clark B Excel Programming 1 August 1st 03 07:39 AM


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