+ Reply to Thread
Results 1 to 4 of 4

Macro Saving Only!

  1. #1
    Registered User
    Join Date
    02-22-2010
    Location
    Irvine, CA
    MS-Off Ver
    Excel 2007
    Posts
    41

    Macro Saving Only!

    Hey Guys,

    So heres my dilemma. Since I don't know understand Custom UI, Ribbonx stuff. I need another solution.

    I have a workbook that should only be able to be saved from a save button that I created in my workbook. In which i have assigned a macro too.

    The user shouldn't be able to save any other way. Currently this code keeps my save macro from working.

    Ideas? I thought about using an if statement, but wasn't sure how to go about it.

    Please Login or Register  to view this content.
    Last edited by ultimastryder; 06-29-2010 at 12:43 PM.

  2. #2
    Registered User
    Join Date
    02-22-2010
    Location
    Irvine, CA
    MS-Off Ver
    Excel 2007
    Posts
    41

    Re: Macro Saving Only!

    If I cannot use an if statment to control the BeforeSave event, then can someone please explain or direct me to somewhere I can understand adding XML to my Excel file??? (Which seems more complicated)

  3. #3
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,998

    Re: Macro Saving Only!

    With the above BeforeSave code in place, your save macro simply needs to have:
    Please Login or Register  to view this content.
    Everyone who confuses correlation and causation ends up dead.

  4. #4
    Registered User
    Join Date
    02-22-2010
    Location
    Irvine, CA
    MS-Off Ver
    Excel 2007
    Posts
    41

    Re: Macro Saving Only!

    Yay! Thanks Romperstomper!

+ 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