+ Reply to Thread
Results 1 to 3 of 3

ERROR while Running Macro from Template

  1. #1
    Forum Contributor
    Join Date
    10-28-2009
    Location
    Portland, Maine
    MS-Off Ver
    Excel 2003
    Posts
    102

    ERROR while Running Macro from Template

    This code works well when I run it saved as an .xls.

    When I save the file as a template and then try to run it bombs on the very last line.

    Please Login or Register  to view this content.
    Any idea why this doesn't work when I have the file saved as a template? I'm not sure what's causing this.

    Thanks!

    Please Login or Register  to view this content.
    Last edited by yunesm; 02-02-2010 at 10:16 AM.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: ERROR while Running Macro from Template

    I suspect you are creating a new file based on the template, in which case said file has never been saved, hence your error.
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Contributor
    Join Date
    10-28-2009
    Location
    Portland, Maine
    MS-Off Ver
    Excel 2003
    Posts
    102

    Re: ERROR while Running Macro from Template

    oh no... I did something way more dumb than that! The file is saving before it writes the filepath so I knew that wasn't the issue. BUT, the file is protected and the code is bombing where I'm trying to write something to the protected cell.

    Not a good start to my day. I fixed it...

    Thanks for the feedback!

+ 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