+ Reply to Thread
Results 1 to 2 of 2

Running macro from vbs not working

  1. #1
    Registered User
    Join Date
    04-08-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    31

    Running macro from vbs not working

    Hi,

    Macro function
    I have a macro that checks whether a specific workbook is open on a local machine.

    Running from excel
    When I run the macro from within excel it works perfectly.

    Running from a vbs file
    When I run the macro from a vbs it DOESN’t work. Nothing wrong with vbs. I have confirmed that. The vbs runs all code within the macro except for checking whether the workbook is open.

    My plan
    I am thinking of getting excel to create a text file if workbook is open and get vbs to throw error if it detects that text file. Any thoughts? Thanks!


    Any suggestions would be greatly appreciated.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,274

    Re: Running macro from vbs not working

    It would probably help us to help you if you post both the macro and the vbs and clarify how and when you run the vbs.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro running but not working
    By dee2016 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-08-2016, 08:08 AM
  2. Macro not working properly when called from Button (Running otherwise)
    By AnimeshRoy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-05-2016, 10:39 AM
  3. Keyboard keys are not working after running macro
    By excelliot in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-24-2014, 12:05 PM
  4. Macro not working while running multiple others macro..
    By calvinle in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-07-2014, 11:27 AM
  5. Need some help on keeping UNDO/REDO working after running macro's. Almost there ;-)
    By onidarbe in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-12-2013, 02:00 PM
  6. [SOLVED] Allow users to edit ranges not working after running a Macro?!
    By Margate in forum Excel General
    Replies: 2
    Last Post: 02-15-2013, 07:42 AM
  7. running macro on time not working
    By SJDANIELS in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-31-2008, 10:33 AM

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