+ Reply to Thread
Results 1 to 8 of 8

VBA macro application.ontime timevalue error

  1. #1
    Forum Contributor Jack7774's Avatar
    Join Date
    08-31-2012
    Location
    Georgia, US
    MS-Off Ver
    Excel 2010
    Posts
    576

    VBA macro application.ontime timevalue error

    I have read a few threads that talk about running a macro upon workbook open at a certain time. I get this error

    "Cannot run the macro "C:\Doctments and Settings\JBRANUM\Application Data\Microsoft\Excel\XLSTART\personal.xls'!DAILYROLLFORWARD'. The macro may not be available in this workbook or all marcos may be disabled."

    Under File - Options - Trust center - Macro Settings - I have "Enable all marcos..." enabled and all of my macros are inside the workbook personal.xls.

    In ThisWorkbook module i have this
    Please Login or Register  to view this content.
    The macro I want to run is also in personal.xls and here it is

    Please Login or Register  to view this content.
    Any ideas how to fix my error? Thanks to everyone in advance.

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: VBA macro application.ontime timevalue error

    what's the name of the module containing the dailyrollforward routine?
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Forum Contributor Jack7774's Avatar
    Join Date
    08-31-2012
    Location
    Georgia, US
    MS-Off Ver
    Excel 2010
    Posts
    576

    Re: VBA macro application.ontime timevalue error

    DAILYROLLFORWARD as well

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: VBA macro application.ontime timevalue error

    that's the problem-change it to something else :-)

  5. #5
    Forum Contributor Jack7774's Avatar
    Join Date
    08-31-2012
    Location
    Georgia, US
    MS-Off Ver
    Excel 2010
    Posts
    576

    Re: VBA macro application.ontime timevalue error

    Ah. That solved the run problem but I have a new one now pertaining to the macro itself. Do I need to start a new thread?

  6. #6
    Forum Contributor Jack7774's Avatar
    Join Date
    08-31-2012
    Location
    Georgia, US
    MS-Off Ver
    Excel 2010
    Posts
    576

    Re: VBA macro application.ontime timevalue error

    In this code it errors at Set DtRNG = Sheets("Sheet1").Range("A:A").SpecialCells(xlConstants) and says no cells were found. I presume possibly because I have a formula in cell a1 instead of data directly. Is that correct?

    Please Login or Register  to view this content.

  7. #7
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: VBA macro application.ontime timevalue error

    yes-if you only have formulas you'll get an error that you need to handle

  8. #8
    Forum Contributor Jack7774's Avatar
    Join Date
    08-31-2012
    Location
    Georgia, US
    MS-Off Ver
    Excel 2010
    Posts
    576

    Re: VBA macro application.ontime timevalue error

    Solved. Thanks.

+ 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