Results 1 to 5 of 5

Thread: Excel 2013: How To Check How Many Excel Files Are Open

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member
    Join Date
    Jun 2013
    Posts
    8
    Rep Power
    0
    Thank you for your quick answer.
    Your script works fine in Excel vba.
    Now, I need to run this script from Powerpoint, and either of the scripts returns 0.

    Following is what I have written for your first answer:
    (I have Microsoft Excel 15.0 Object Library checked on Reference and a few Excel files open prior to running the script)

    Code:
    Dim exl as Excel.Application
    Dim wbct as integer
    Set exl = New Excel.Application
    exl.Visible = True
    wbct = exl.Application.Workbooks.Count  '<=  wbct returns 0
    Your second answer returned the same.

    What am I doing wrong?
    Last edited by Admin; 06-08-2013 at 08:51 AM.

Similar Threads

  1. Good tutorial Excel 2013 SDK
    By Rasm in forum Excel Help
    Replies: 2
    Last Post: 04-01-2013, 01:17 AM
  2. Replies: 10
    Last Post: 12-10-2012, 11:28 PM
  3. Excel to Excel Data transfer without opening any of the files(source or target)
    By Transformer in forum Excel and VBA Tips and Tricks
    Replies: 14
    Last Post: 08-22-2012, 10:57 AM
  4. Loop and Check For Values In Entire Column in Excel
    By Jeff5019 in forum Excel Help
    Replies: 3
    Last Post: 05-01-2012, 10:34 PM
  5. Check if file is already open
    By Rasm in forum Excel Help
    Replies: 5
    Last Post: 11-24-2011, 04:55 PM

Tags for this Thread

Posting Permissions

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