Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I just wanna check if this excel VBA statement is correct: Const DataPath = "U:\DATA\PROGRAM\" Workbooks.Open Filename:=DataPath + "MOPS.XLS" I need your advise. Thanks. Sheela |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Sheela,
Yes, it is syntactically correct. -- Rob Bovey, MCSE, MCSD, Excel MVP Application Professionals http://www.appspro.com/ * Please post all replies to this newsgroup * * I delete all unsolicited e-mail responses * "Sheela" wrote in message ... Hello, I just wanna check if this excel VBA statement is correct: Const DataPath = "U:\DATA\PROGRAM\" Workbooks.Open Filename:=DataPath + "MOPS.XLS" I need your advise. Thanks. Sheela |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Workbooks.open DataPath & "Mops.xls"
Use & to join strings together Hope this helps Stuart -----Original Message----- Hello, I just wanna check if this excel VBA statement is correct: Const DataPath = "U:\DATA\PROGRAM\" Workbooks.Open Filename:=DataPath + "MOPS.XLS" I need your advise. Thanks. Sheela . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
My excel macro recorder no longer shows up when recording macro | Excel Discussion (Misc queries) | |||
My excel macro recorder no longer shows up when recording macro | Excel Discussion (Misc queries) | |||
passing arguments from an excel macro to a word macro | Excel Discussion (Misc queries) |