We help IT Professionals succeed at work.
Get Started

VBScript and VBA (Excel) problems

Ken Turner
Ken Turner asked
on
772 Views
Last Modified: 2010-05-01
I am driving an Excel Spreadsheet from VBScript, so I start off with a statement such as:

Set Spreadsheet = getobject("Q:\TIMS3\Setup\TIMS3 Build Control.xls")

I am then able to access plenty of the VBA methods and properties with no problems, but I have hit two snags:

1. I want to use a MsgBox function, but I want it to be the Excel VBA MsgBox rather than the VBScript one.  How do I do this?

2. I've also got some code going on in the spreadsheet itself, and it would be nice if I could access in VBScript some of the variables used in the VBA code in the spreadsheet.  Can this be done?

Any suggestions for reading matter in this area?
Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE