+ Reply to Thread
Results 1 to 6 of 6

Need to Exit Sub when Signature Line is signed

  1. #1
    Registered User
    Join Date
    08-24-2017
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2016
    Posts
    3

    Need to Exit Sub when Signature Line is signed

    Hello,

    I am quite new to VBA and new to this forum so hopefully I am explaining my requirements properly. I am using both Excel 2007 and Excel 2016.

    I am creating a Private Sub that runs automatically when the workbook is opened. My code does everything that I need it to but we use the Signature Line for approvals. Once the file is approved and is signed, Excel automatically saves the file to Read Only and prevents any edits. If I re-open a file after it is signed, I need for the code to exit the sub instead of executing it, if I don't then the user will get an error because the macro fails.

    I have added the code, which worked if I flagged the file as read only but didn't work if it was Read Only because it was signed.

    Please Login or Register  to view this content.
    I did some searching online and replace the first line above with the line below:

    Please Login or Register  to view this content.
    This resulted in a Run Time Error "438" Object does not support this property or method.

    Over the last few hours I have done more searching (and tried several variations of the above) but can't seem to find very much VBA code relating to the use of the Signature Line function included in Excel.

    Any help would be greatly appreciated.

    Thank you.
    Last edited by kanneb; 08-25-2017 at 09:41 AM. Reason: adding code tags around code

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Need to Exit Sub when Signature Line is signed

    Hi kanneb, welcome to the forum! I don't work with signatures, so I'm only guessing, but perhaps:
    Please Login or Register  to view this content.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Need to Exit Sub when Signature Line is signed

    Welcome to the forum.

    Unfortunately you have not read the rules and will therefore not get any responses.

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  4. #4
    Registered User
    Join Date
    08-24-2017
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2016
    Posts
    3

    Re: Need to Exit Sub when Signature Line is signed

    My apologies. I have fixed my post.

  5. #5
    Registered User
    Join Date
    08-24-2017
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2016
    Posts
    3

    Re: Need to Exit Sub when Signature Line is signed

    Thank you for the suggestion. It seems to have worked exactly the way I was hoping.

    Quote Originally Posted by leelnich View Post
    Hi kanneb, welcome to the forum! I don't work with signatures, so I'm only guessing, but perhaps:
    Please Login or Register  to view this content.

  6. #6
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Need to Exit Sub when Signature Line is signed

    Sure, happy to help. That property popped up when I googled "workbook signatures".

+ 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. VBA: Getting signature data from signed and unsigned signature blocks
    By KeithWood in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-04-2022, 06:05 AM
  2. Control a Signature Line with VBA
    By Justin Smith in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-01-2015, 05:03 PM
  3. Make Signature Line NON-Movable
    By CurtGentry in forum Excel General
    Replies: 1
    Last Post: 07-06-2015, 11:38 AM
  4. [SOLVED] Inserting Signature line into outlook email
    By clabhart in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-15-2014, 02:58 PM
  5. [SOLVED] Working Age Group Signed From DOB and Date Signed
    By Bellio3105 in forum Excel General
    Replies: 2
    Last Post: 11-05-2012, 02:02 PM
  6. Add line breaks and signature to Outlook email
    By kirtchristensen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-31-2011, 07:29 PM
  7. Signature Line: Macro to sign
    By JDavis in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-29-2009, 03:00 PM

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