+ Reply to Thread
Results 1 to 4 of 4

Macro Help!!!!

  1. #1
    Registered User
    Join Date
    01-12-2005
    Posts
    11

    Exclamation Macro Help!!!!

    I have created a macro that runs when you open my template, this macro asks you various questions and enters your replies into various cells.

    However when I save the completed form and go back in to it later the macro re-runs itself when I open it, is there any way to stop the macro from running once the documnet has been saved!

    Thank you

  2. #2
    Registered User
    Join Date
    09-23-2004
    Posts
    65
    Perhaps you could make a Checkcell (boolean: TRUE or FALSE)....

    When opening, the cell value is FALSE so the whole macro is running.
    When saving, put the cellvalue to TRUE

    Next time, when the macro is opened, it checks the cellvalue, and true means end the macro.


    SO

    Sub Macro ()

    If Cell( , ).value then
    exit sub
    Else

    <enter here your current made macro>

    End if

    End Sub

  3. #3
    Registered User
    Join Date
    09-23-2004
    Posts
    65
    Quote Originally Posted by Zurn
    Sub Macro ()

    If Cell( , ).value then
    exit sub
    Else

    <enter here your current made macro>

    End if

    End Sub
    After <enter here your current made macro>
    You have to change te cell( , ).value=true


    Forgot, sorry

  4. #4
    Registered User
    Join Date
    01-12-2005
    Posts
    11

    Smile

    Cheers Zurn

+ 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