Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can not compile the VBA module

Status
Not open for further replies.

DWResource

Programmer
Dec 24, 2002
16
0
0
FI
Hi,
I am trying to run a VBA macro from within Business Objects. This macro runs fine in windows 2000 but in XP pro it gives following error :

"Compile error"
"Can't find project or Library"

and it points to following line which appends a date field at end.

temp_file = "C:\temp\" & Rep.Name &
Format(Date, "yyyymmdd") & ".xls"


So basically it gives error in Format(Date,"yyyymmdd").


 
Check the references.
usually for microsoft VBEditor, menu Tools -> References ...

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Seems the code is halted. Reinitialize the project.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
I am a newbie to the VBA ??

How do I Reinitialize the project ??

Thanks Much
 
for microsoft VBEditor, menu Execution -> Reinitialize

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanks PH

I could not find the Execution Menu from within Business Objects and I don't have VB loaded.

But I did re-open the report and somehow this time the TOOL--> References Menu was highlighted, so I included some Microsofy libraries and it worked fine.

Thanks for your help....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top