×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Siemens OPC Excel server...auto start?

Siemens OPC Excel server...auto start?

Siemens OPC Excel server...auto start?

(OP)
I'm using the latest Siemens OPC server, collecting data with their excel plug in.  I'm trying to make it so it automatically starts collecting data when the spreadsheet is opened.  I'm having trouble doing it with a macro.  Anyone know how to do this?

The idea is to have it as automatic as possible.  It needs to start up when the computer is turned on, instead of waiting for someone to go click the "collect data" button...

Thanks

RE: Siemens OPC Excel server...auto start?

Try using Sub Auto_Open()

RE: Siemens OPC Excel server...auto start?

(OP)
Well, that will start a macro automatically, but I don't know how to make it start collecting data from within that macro...

RE: Siemens OPC Excel server...auto start?

How do you start the data collection now? Just implement the same procedure from within that sub.

RE: Siemens OPC Excel server...auto start?

(OP)
You hit a button on the tool bar that the OPC program added to excel.  I tried recording a macro, but excel acts as if it didn't even see that button click when I try and record it...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources