Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Applications / Excel / March 2005



Tip: Looking for answers? Try searching our database.

Problem calling a procedure in another project

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bill W - 22 Mar 2005 20:20 GMT
Can anyone offer assistance with the reason the following does not
work:

' Procedure in TestWorkbook.xls
Sub UpdateStatus()
   thePage = "Status"
   theCols = Array(12, 20, 35, 20, 20, 20, 20, 3)
   [MyMacros.xls].[ModuleName].UpdateSiteFolder
End Sub

I get the object required error.  BTW - this macro needs to be in
TestWorkbook.xls and UpdateSiteFolder will always be in MyMacros.xls

Thanks!
Bill
J Laroche - 23 Mar 2005 01:09 GMT
Bill W wrote on 2005/03/22 14:20:

> Can anyone offer assistance with the reason the following does not
> work:
[quoted text clipped - 11 lines]
> Thanks!
> Bill

Maybe you should look at the statement DECLARE in help. DECLARE tells VBA
where to find your external procedures.

JL
Mac OS X 10.3.8, Office v.X 10.1.6
Bob Greenblatt - 23 Mar 2005 14:25 GMT
On 3/22/05 2:20 PM, in article
1111519231.122302.142410@l41g2000cwc.googlegroups.com, "Bill W"
<billwarren@gmail.com> wrote:

> Can anyone offer assistance with the reason the following does not
> work:
[quoted text clipped - 11 lines]
> Thanks!
> Bill

Have you established a reference to mymacros.xls from testworkbook.xls?

Signature

Bob Greenblatt [MVP], Macintosh
bobgreenblattATmsnDOTcom

Bill W - 27 Mar 2005 23:11 GMT
thank you, the referencing worked.  the mymacros.xls file has 700KB of
modules & forms simply because I couldn't get procedures in separate
workbooks to work together.  I can finally begin to break-them up.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.