Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default MsgBox Useage

Hello again,

Run into a bit of a snag

There was some code in place in the excel project I am working on.......

chdrive ("C")
chdir Curdir
msgbox "current working directory is ", CurDir

Now when I try run this macro (excel spreadsheet saved as excel 5.0/95, but
opened and edited in excel 2000, then saved back to 5.0) I get an
error...HELP!!! lol

It USED to work

The msgbox is a requirment of the project, to come up and tell the user
which directory their files are in

I need to get the msgbox working again using the curdir (currentdirectory)

Thanks in advance
Jeff


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default MsgBox Useage

"Jeff" wrote in message
...
Hello again,

Run into a bit of a snag

There was some code in place in the excel project I am working on.......

chdrive ("C")
chdir Curdir
msgbox "current working directory is ", CurDir

Now when I try run this macro (excel spreadsheet saved as excel 5.0/95,

but
opened and edited in excel 2000, then saved back to 5.0) I get an
error...HELP!!! lol

It USED to work

The msgbox is a requirment of the project, to come up and tell the user
which directory their files are in

I need to get the msgbox working again using the curdir (currentdirectory)

Thanks in advance
Jeff




Hi Jeff,

Just replace the komma with an ampersand (&) like this:

msgbox "current working directory is " & CurDir

Glenner003


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default MsgBox Useage

You don't need chdir Curdir

That does nothing.

chdrive ("C")
msgbox "current working directory is " & CurDir




--
Regards,
Tom Ogilvy


"glenner003" wrote in message
.be...
"Jeff" wrote in message
...
Hello again,

Run into a bit of a snag

There was some code in place in the excel project I am working on.......

chdrive ("C")
chdir Curdir
msgbox "current working directory is ", CurDir

Now when I try run this macro (excel spreadsheet saved as excel 5.0/95,

but
opened and edited in excel 2000, then saved back to 5.0) I get an
error...HELP!!! lol

It USED to work

The msgbox is a requirment of the project, to come up and tell the user
which directory their files are in

I need to get the msgbox working again using the curdir

(currentdirectory)

Thanks in advance
Jeff




Hi Jeff,

Just replace the komma with an ampersand (&) like this:

msgbox "current working directory is " & CurDir

Glenner003




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
Excel 2003 - open work book useage agreement mbotfield Excel Worksheet Functions 3 September 23rd 09 04:53 PM
CPU useage at 100% on EXCEL.EXE Dave Patrick Excel Discussion (Misc queries) 0 January 1st 07 03:01 AM
what is print to file in print dialogue box and its useage? Vandana Excel Worksheet Functions 0 August 23rd 06 11:45 AM
IF Statement useage BThrasher Excel Discussion (Misc queries) 4 May 18th 06 03:21 PM
MsgBox CC Excel Discussion (Misc queries) 4 May 5th 06 05:45 PM


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