control excel from Agilent VEE with ActiveX

  • Thread starter Thread starter Angela Carrey
  • Start date Start date
A

Angela Carrey

Hello,
(I just found out about this website today and I just joined, so
please excuse and inform me of any protocol missteps I might make). If
anyone can answer the following question I'd be grateful.
I am trying to send a command from VEE to Excel using ActiveX. So far
I have done this successfully by recording a macro in Excel, and then
copying/pasting the Visual Basic text into a VEE formula box.
However, when the Visual Basic text includes a method with arguments,
VEE doesn't like the syntax. The syntax in Visual Basic is:

ActiveChart.PlotArea.Fill.UserPicture PictureFile:=
"C:\folder\myfile.bmp"

VEE doesn't seem to like the space between UserPicture and
PictureFile.
Thanks very much,
Angela
 
Don't know what VEE is, but try adding parentheses...


ActiveChart.PlotArea.Fill.UserPicture(PictureFile:="C:\folder\myfile.bmp"
 

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

Back
Top