+ Reply to Thread
Results 1 to 2 of 2

Schedule Macros problem

  1. #1
    Registered User
    Join Date
    04-06-2012
    Location
    San Bruno, USA
    MS-Off Ver
    Excel 2003
    Posts
    32

    Schedule Macros problem

    Hi, all

    I was looking how to schedule Macros and find this handy thread:
    http://www.mrexcel.com/forum/excel-q...pen-excel.html
    (Task scheduler + VB script to auto open excel)

    I tried to do exactly same on 2007, and 2010 and failed, tried all version posted in there,
    but have this error:
    C:\xxx\myScript.vbs(9, 1) Microsoft Office Excel: Cannot run the macro 'AddTimeInColumn'.
    The macro may not be available in this workbook or all macros may be disabled.



    I found that when this vbs open book1.xlsx it doesn't bring personal.xlsb or there is some other reason, I don't have AddTimeInColumn in my macros menu, but it's in module of personal.xlsb,(not workbook though) probably because of <Private> or using parameter??

    can anybody make it run or point why mine is not working?
    I'm W7, tried office 2007, and 2010, ran thru all troubleshooting as checking Disable list, Enable Macros, Enable vbs script, tried xlsx and just .xls.

    Thanks
    Mario

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Schedule Macros problem

    you can also set the main macro in your excel file to Auto_Open and then launch the excel file from the scheduler....you could just copy the macro from your personal.xlsb area to the new project and that should find the macro....also, if you set the main macro to Auto_Open and you need to troubleshoot the file you have to hit <Ctrl-Break> to get to the VBA Project....HTH....

    Edit....if you are running in 2007/2010 you might want to save the file as an .XLSM
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

+ 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. [SOLVED] Using Macros to calculate employee hours on a schedule
    By christhweatt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-20-2013, 05:21 AM
  2. Shift Schedule Problem
    By aakash00292 in forum Excel General
    Replies: 5
    Last Post: 06-15-2012, 08:24 AM
  3. open Excel with Macros active from windows schedule
    By bagullo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-05-2011, 03:44 AM
  4. Schedule problem
    By gregg141 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-14-2011, 02:51 PM
  5. schedule problem:manhours
    By Xaos in forum Excel General
    Replies: 2
    Last Post: 11-24-2007, 11:07 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