+ Reply to Thread
Results 1 to 3 of 3

Slow running of Excel macros embedded in an ActiveX

  1. #1
    Philip Kinchington
    Guest

    Slow running of Excel macros embedded in an ActiveX

    Can anyone point me in the direction of a handy resource/webpage that
    can help me with my problem?

    I have developed a reporting system based within Wonderware's InTouch
    SCADA package. On one of my screens I have a an iexplore ActiveX object
    which I use to open some Excel spreadsheets (different ones for
    different reports.) Wonderware allows me to send macro commands to the
    embedded spreadsheet via DDE. For instance I have a button which runs a
    macro to print the active worksheet which consists simply of the one-liner:

    ActiveSheet.PrintOut

    This works, however the command takes over 20 seconds to run, and during
    that time the system is locked up. From some of the more complex macros
    I have (one takes a copy of the template report, updates all of the
    data, and then makes a copy with a filename derived from data stored a
    hidden "Data" worksheet) it seems that it is not the macro as a whole
    that is running slowly, but certain parts of it. The reports gather data
    from a SQL Server running on the local machine via VBA code within the
    macros, and via DDE links to InTouch and an OPC server of the form
    '=Application|Topic!Item'. Both of these seem to run very fast, it is
    the save and print operations that seem to cause the most problems.

    Is there anyway of speeding this up? or is it as I suspect, that I am
    asking too much in DDE-ing commands to what seems to me to be an ActiveX
    spreadsheet running within an ActiveX Internet Explorer object?

    Any help will be greatly appreciated. Thanks.

  2. #2
    Registered User
    Join Date
    03-04-2019
    Location
    Ahmedabad
    MS-Off Ver
    2013
    Posts
    1

    Re: Slow running of Excel macros embedded in an ActiveX

    Hello,

    Right Now, I am using Wonderware Intouch Software to generate report batch by batch. I am also facing same issue as same as you to run macro.With availability of access name feature in wonderware i used to write value in excel sheet and then through Macro i used to save report file automatically.Problem with using macro is that i cant access it from Wonderware, Wonderware Software just write values of Tag's in corresponding cell.

    So i request you to tell me solution of this problem if you came up with it.

    Thank you.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,913

    Re: Slow running of Excel macros embedded in an ActiveX

    @dr31011

    Unfortunately your post does not comply with Rule 4 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1