PC Review


Reply
Thread Tools Rate Thread

Changing the folder to a value stored in a variable instead of a s

 
 
Pete Rooney
Guest
Posts: n/a
 
      9th Apr 2008
Good afternoon,

I'm using code to display a folder structure, from which i can click on a
folder and store it to a variable name.
I then want to save the current workbook into that folder, but I don't seem
to be able to use the CHDIR command without the parametr being in
parentheses. I want to say something line CHDIR(MySelectedFolder), but the
Help only shows examples like CHDIR "C:\MyFolder". Is it possible to do what
I want?
Thanks in advance
Pete
 
Reply With Quote
 
 
 
 
Jim Rech
Guest
Posts: n/a
 
      9th Apr 2008
CHDIR MySelectedFolder

should work.

--
Jim
"Pete Rooney" <(E-Mail Removed)> wrote in message
news:B1A68F76-B3D9-45A0-BF35-(E-Mail Removed)...
| Good afternoon,
|
| I'm using code to display a folder structure, from which i can click on a
| folder and store it to a variable name.
| I then want to save the current workbook into that folder, but I don't
seem
| to be able to use the CHDIR command without the parametr being in
| parentheses. I want to say something line CHDIR(MySelectedFolder), but the
| Help only shows examples like CHDIR "C:\MyFolder". Is it possible to do
what
| I want?
| Thanks in advance
| Pete


 
Reply With Quote
 
Pete Rooney
Guest
Posts: n/a
 
      9th Apr 2008
Jim,

I must have been having a bad hair day - all working now! :-)

Cheers

Pete



"Jim Rech" wrote:

> CHDIR MySelectedFolder
>
> should work.
>
> --
> Jim
> "Pete Rooney" <(E-Mail Removed)> wrote in message
> news:B1A68F76-B3D9-45A0-BF35-(E-Mail Removed)...
> | Good afternoon,
> |
> | I'm using code to display a folder structure, from which i can click on a
> | folder and store it to a variable name.
> | I then want to save the current workbook into that folder, but I don't
> seem
> | to be able to use the CHDIR command without the parametr being in
> | parentheses. I want to say something line CHDIR(MySelectedFolder), but the
> | Help only shows examples like CHDIR "C:\MyFolder". Is it possible to do
> what
> | I want?
> | Thanks in advance
> | Pete
>
>
>

 
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
How to get one variable to equal the value of a changing variable (its hard to explain in the subject) Bob Microsoft Access 2 4th Nov 2007 06:50 AM
Using stored variable in a formula tc Microsoft Excel Programming 2 11th Sep 2007 04:59 PM
Trying to execute something stored in variable Mike TI Microsoft VB .NET 4 23rd Apr 2006 02:31 PM
Execute something stored in a variable Mike TI Microsoft VB .NET 2 22nd Apr 2006 09:11 AM
Run macro from name stored in variable? chubster264 Microsoft Excel Programming 5 5th Jan 2006 09:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:29 PM.