Excel VBA Macro

S

Sheela

Hello,

I want to check if this statement is correct in excel VBA:

Const DataPath = "U:\DATA\PROGRAM\"

Workbooks.Open Filename:=DataPath + "MOPS.XLS"

Please advise. Thanks

Sheela
 
A

Andy Pope

Sheela,

It appears correct.
Although personally I would use & instead of + when concatenating.

Hello,

I want to check if this statement is correct in excel VBA:

Const DataPath = "U:\DATA\PROGRAM\"

Workbooks.Open Filename:=DataPath + "MOPS.XLS"

Please advise. Thanks

Sheela

--

Cheers
Andy

http://www.andypope.info
 
T

Tushar Mehta

What am I missing? Wouldn't it be easier, quicker, and simpler for you
to check it on your own machine?

--
Regards,

Tushar Mehta, MS MVP -- Excel
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top