Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default CurDir in excel 2003

Hi all,

I am trying to port the vba code that I have written in excel2000 to
excel2003. I am getting a lot of errors. It looks like the in excel
2003 we need to explicitly define the type of the variable. By defining
the type of the variable I could get rid off most of the errors. But I
can't get rid off one error. I am wondering what I can do to fix this.

The code that works fine in excel2000 is flagging error for CurDir in
excel2003. It says that it can't find project or library..How can I fix
this..Thanks in advance for your suggestion..

shishi

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default CurDir in excel 2003

Open only this workbook. Run the code.
after you get the error, in the VBE look in Tools=References (you may have
to hit the reset button)
(insure that your project is selected in the project explorer so it is the
activeproject)

In tools=References you will probably find one or more references marked as
MISSING. These will probably be totally unrelated to CURDIR, but these
Missing references must be rectified - either unselected or fixed by finding
the correct reference in the current computer.

--
Regards,
Tom Ogilvy
"shishi" wrote in message
oups.com...
Hi all,

I am trying to port the vba code that I have written in excel2000 to
excel2003. I am getting a lot of errors. It looks like the in excel
2003 we need to explicitly define the type of the variable. By defining
the type of the variable I could get rid off most of the errors. But I
can't get rid off one error. I am wondering what I can do to fix this.

The code that works fine in excel2000 is flagging error for CurDir in
excel2003. It says that it can't find project or library..How can I fix
this..Thanks in advance for your suggestion..

shishi



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
Curdir Jos Vens[_2_] Excel Programming 2 March 29th 05 12:53 PM
CurDir("c") BobAchgill Excel Programming 1 February 18th 05 03:28 PM
CurDir does not work Jim73 Excel Programming 3 January 12th 05 08:15 AM
CurDir vi_sh_wa Excel Programming 2 December 14th 04 08:17 AM
Excel 97 VBA - CURDIR, not reliable Ricke G Excel Programming 2 July 28th 04 07:52 PM


All times are GMT +1. The time now is 04:18 PM.

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"