Thread: Excel VBA Macro
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Stuart[_7_] Stuart[_7_] is offline
external usenet poster
 
Posts: 3
Default Excel VBA Macro

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
.