Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Procedure too large" error ...DAMN

I keep getting Procedure too large" error on one of my macros !!
I really don't won't to cut it in two because the function has to run from
one button click !

shamran


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 339
Default Procedure too large" error ...DAMN


"-[::::Shamran::::]-" wrote in message
...
I keep getting Procedure too large" error on one of my macros !!
I really don't won't to cut it in two because the function has to run from
one button click !

shamran



The error message is pretty self explanatory. Do you do basically the same
over and over? Please explain what your macro does and paste some relevant
portion of it. It doesn't matter if you split it. Let thefirst part call the
other.

7fredrik


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Procedure too large" error ...DAMN

Hi Shamran

You can run multiple macros by calling them from another macro. Try running
Main here -or to assign it to a button:

Sub Main()
Macro1
Macro2
Macro3
End Sub

Sub Macro1()
MsgBox "I'm too sexy for my shirt"
End Sub

Sub Macro2()
MsgBox "I'm too sexy for my hat"
End Sub

Sub Macro3()
MsgBox "I'm too sexy for this song"
End Sub

HTH. Best wishes Harald

"-[::::Shamran::::]-" skrev i melding
...
I keep getting Procedure too large" error on one of my macros !!
I really don't won't to cut it in two because the function has to run from
one button click !

shamran




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Procedure too large" error ...DAMN


"Harald Staff" wrote in message
...
Hi Shamran

You can run multiple macros by calling them from another macro. Try
running
Main here -or to assign it to a button:

Sub Main()
Macro1
Macro2
Macro3
End Sub

Sub Macro1()
MsgBox "I'm too sexy for my shirt"
End Sub

Sub Macro2()
MsgBox "I'm too sexy for my hat"
End Sub

Sub Macro3()
MsgBox "I'm too sexy for this song"
End Sub

HTH. Best wishes Harald


NICE ... I'll give it a try later !

Jesper


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Procedure too large" error ...DAMN


"Harald Staff" wrote in message
...
Hi Shamran

You can run multiple macros by calling them from another macro. Try
running
Main here -or to assign it to a button:

Sub Main()
Macro1
Macro2
Macro3
End Sub

Sub Macro1()
MsgBox "I'm too sexy for my shirt"
End Sub

Sub Macro2()
MsgBox "I'm too sexy for my hat"
End Sub

Sub Macro3()
MsgBox "I'm too sexy for this song"
End Sub

HTH. Best wishes Harald


I have just tried it and it works ... talk about saving my day ... thanks !!

jesper




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Procedure too large" error ...DAMN

Glad to hear that Jesper.
Providing a little cold water for tomorrow morning:
No routine should ever have to be as long as too large, tasks should be
crunched down to small single minded units. But that's next semester, now
celebrate.

Best wishes Harald

"-[::::Shamran::::]-" skrev i melding
...

I have just tried it and it works ... talk about saving my day ... thanks

!!

jesper




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
VBA Compile error: Procedure too large? Jerry Dyben Excel Discussion (Misc queries) 1 October 31st 05 10:15 PM
bizarre "invalid procedure call" error PatFinegan[_14_] Excel Programming 11 July 13th 04 07:56 PM
Damn error 91! jon Excel Programming 1 May 21st 04 12:21 PM
Compile Error: Procedure too large mate Excel Programming 2 May 18th 04 04:30 PM
the "Procedure too large" error abxy[_57_] Excel Programming 1 April 22nd 04 03:16 AM


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