PC Review


Reply
Thread Tools Rate Thread

Calling macros

 
 
=?Utf-8?B?U1lCUw==?=
Guest
Posts: n/a
 
      28th Apr 2007
I have posted this question before and unfortunately, the answer seemed to
work once now I have this problem again. Can anyone help here please. This
macro Sub GenDetailsMen(), is what I want to use to call the 14 macros below,
which all populate other sheets with the information held on sheet 3. They
all worked individually, but I get a 400 or 1004 message every time I ty to
use it. Where am I going wrong please.

Thanks



'THIS CALLS MACROS OFF OTHER SHEETS TO CLEAR CONTENTS AND REPOPULATE THE
SHEETS FOR A NEW START'


Sub GenDetailsMen()
ActiveSheet.Unprotect ("sybs")



If MsgBox("You are about to Populate all the EVENT sheets with the names of
the Contestants you have entered on this Sheet. Please carefully check that
all names have been entered as you can not add/delete or change these Names
after confirming. Do you want to proceed?", vbYesNo, "Delete Data") = vbYes
Then
If MsgBox("PLEASE ENSURE YOU HAVE CHECKED THESE ENTRIES CAREFULLY
BEFORE CONTINUING. Do you want to proceed?", vbYesNo, "Generate Details") =
vbYes Then


Call Footpoprowsmen
Call Throwpoprowsmen
Call Speedpoprowsmen
Call ARlist2men
Call copyARcardsdown
Call Worklistmen
Call Worklist2men
Call copyWKcardsdown
Call ITTCCpoprowsmen
Call SPEEDprint
Call Footprint
Call Throwprint
Call Airprint
Call Workprint


ActiveSheet.Protect ("sybs")
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
ActiveSheet.EnableSelection = xlUnlockedCells
End If
End If
End Sub

 
Reply With Quote
 
 
 
 
Otto Moehrbach
Guest
Posts: n/a
 
      28th Apr 2007
When you get the Excel error message, click on the "Debug" button in the
error box. This will take you to the code (macros) and will highlight the
offending line of code. Perhaps this will give you a clue as to what is
wrong. Or you can post some of the code that includes the offending line.
HTH Otto
"SYBS" <(E-Mail Removed)> wrote in message
news:1B3EF8AD-3FCA-463B-9175-(E-Mail Removed)...
>I have posted this question before and unfortunately, the answer seemed to
> work once now I have this problem again. Can anyone help here please.
> This
> macro Sub GenDetailsMen(), is what I want to use to call the 14 macros
> below,
> which all populate other sheets with the information held on sheet 3.
> They
> all worked individually, but I get a 400 or 1004 message every time I ty
> to
> use it. Where am I going wrong please.
>
> Thanks
>
>
>
> 'THIS CALLS MACROS OFF OTHER SHEETS TO CLEAR CONTENTS AND REPOPULATE THE
> SHEETS FOR A NEW START'
>
>
> Sub GenDetailsMen()
> ActiveSheet.Unprotect ("sybs")
>
>
>
> If MsgBox("You are about to Populate all the EVENT sheets with the names
> of
> the Contestants you have entered on this Sheet. Please carefully check
> that
> all names have been entered as you can not add/delete or change these
> Names
> after confirming. Do you want to proceed?", vbYesNo, "Delete Data") =
> vbYes
> Then
> If MsgBox("PLEASE ENSURE YOU HAVE CHECKED THESE ENTRIES CAREFULLY
> BEFORE CONTINUING. Do you want to proceed?", vbYesNo, "Generate Details")
> =
> vbYes Then
>
>
> Call Footpoprowsmen
> Call Throwpoprowsmen
> Call Speedpoprowsmen
> Call ARlist2men
> Call copyARcardsdown
> Call Worklistmen
> Call Worklist2men
> Call copyWKcardsdown
> Call ITTCCpoprowsmen
> Call SPEEDprint
> Call Footprint
> Call Throwprint
> Call Airprint
> Call Workprint
>
>
> ActiveSheet.Protect ("sybs")
> ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
> ActiveSheet.EnableSelection = xlUnlockedCells
> End If
> End If
> End Sub
>



 
Reply With Quote
 
=?Utf-8?B?RlN0MQ==?=
Guest
Posts: n/a
 
      28th Apr 2007
hi,
application defined or object defined errors. and with 14 macros that could
be a number of things.
Have you tried stepping through the cond to see which line(s) of code are
triggering the errors? that would be helpful.

regards
FSt1

"SYBS" wrote:

> I have posted this question before and unfortunately, the answer seemed to
> work once now I have this problem again. Can anyone help here please. This
> macro Sub GenDetailsMen(), is what I want to use to call the 14 macros below,
> which all populate other sheets with the information held on sheet 3. They
> all worked individually, but I get a 400 or 1004 message every time I ty to
> use it. Where am I going wrong please.
>
> Thanks
>
>
>
> 'THIS CALLS MACROS OFF OTHER SHEETS TO CLEAR CONTENTS AND REPOPULATE THE
> SHEETS FOR A NEW START'
>
>
> Sub GenDetailsMen()
> ActiveSheet.Unprotect ("sybs")
>
>
>
> If MsgBox("You are about to Populate all the EVENT sheets with the names of
> the Contestants you have entered on this Sheet. Please carefully check that
> all names have been entered as you can not add/delete or change these Names
> after confirming. Do you want to proceed?", vbYesNo, "Delete Data") = vbYes
> Then
> If MsgBox("PLEASE ENSURE YOU HAVE CHECKED THESE ENTRIES CAREFULLY
> BEFORE CONTINUING. Do you want to proceed?", vbYesNo, "Generate Details") =
> vbYes Then
>
>
> Call Footpoprowsmen
> Call Throwpoprowsmen
> Call Speedpoprowsmen
> Call ARlist2men
> Call copyARcardsdown
> Call Worklistmen
> Call Worklist2men
> Call copyWKcardsdown
> Call ITTCCpoprowsmen
> Call SPEEDprint
> Call Footprint
> Call Throwprint
> Call Airprint
> Call Workprint
>
>
> ActiveSheet.Protect ("sybs")
> ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
> ActiveSheet.EnableSelection = xlUnlockedCells
> End If
> End If
> End Sub
>

 
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
Problems calling macros in addin from within macros Andibevan Microsoft Excel Programming 2 16th Aug 2005 09:29 AM
Calling Macros From VB6 Diehard Microsoft Excel Programming 3 2nd Aug 2004 04:42 PM
Calling macros from a VB app =?Utf-8?B?TWluaWxlaw==?= Microsoft Excel Programming 2 13th Jul 2004 09:43 AM
Calling Macros In IDE Greg Smith Microsoft Dot NET 6 5th Jan 2004 01:15 PM
Calling macros in another spreadsheet skimmer333 Microsoft Excel Programming 0 30th Sep 2003 01:43 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:19 PM.