+ Reply to Thread
Results 1 to 4 of 4

Macros prevent LabVIEW from accessing worksheet programmatically

  1. #1
    Registered User
    Join Date
    11-05-2012
    Location
    Niskayuna, NY
    MS-Off Ver
    Excel 2010
    Posts
    2

    Macros prevent LabVIEW from accessing worksheet programmatically

    I am writing an app in LabVIEW that reads in data from an Excel Workbook. I would like the workbook to open in background but when I do, an Excel popup that states " This workbook will auto-close after 20 minutes of inactivity" opens with an OK button. If I open the workbook with Visible = False, I still get the popup but it opens under my app. How do I supress all popups and prevent macros from running when opening an Excel workbook using ActiveX?

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Macros prevent LabVIEW from accessing worksheet programmatically

    How are you opening the workbook?

    " This workbook will auto-close after 20 minutes of inactivity"
    Where is that message coming from -- from code you wrote?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    11-05-2012
    Location
    Niskayuna, NY
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Macros prevent LabVIEW from accessing worksheet programmatically

    To open the workbook, I am using a "Workbooks Open" invoke node. The message comes from the workbook, presumably an autorun macro put there bo others for users that open the workbook in Windows. I don't want to change the macros, just supress them so that I can get to the data (read only). It would be helpful if I could find a flowchart of properties and methodss for Excel.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Macros prevent LabVIEW from accessing worksheet programmatically

    Two ways:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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