Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Mon, 16 Aug 2010 19:20:02 -0700, Mike S wrote:
Apologies, CurDir works in VB6 but not VBA I test this in an Excel 2000 macro and it worked, so I think this may work for you: Public Sub doin() Dim path As String ChDir "C:\From G Data\Data Files & Test Programs\Work Data" path = CurDir MsgBox path End Sub ChDir "G:\From G Data\Data Files & Test Programs\Work Data\" ExecCmd "zipbatch.bat", 15, True, "" Sorry for not testing before posting, I need to remember that there are some differences between VB6 and VBA. Mike - thanks for your trouble. I did say you were dealing with a novice, and, to be honest, simply not using ampersands in folder names is a much simpler solution for me! But I do appreciate your time. Thanks again. Chris. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
batch file to ftp code not running - please help! | Excel Programming | |||
Running a Batch file from VBA | Excel Programming | |||
running a batch file | Excel Programming | |||
Running a batch file from VB | Excel Programming | |||
Running a batch file from Excel VBA | Excel Programming |