Consulting

Results 1 to 3 of 3

Thread: Overcome Excel "Save as"

  1. #1
    VBAX Regular
    Joined
    Oct 2007
    Posts
    45
    Location

    Overcome Excel "Save as"

    Hi,

    I have my own "save as" option in a command button. this control is made by a msgbox (YesNoCancel), but if my option is "No", i give command to close the workbook. But, if there were changes in the workbook , appears the Excel "Save as " message.

    How can i overcome this "save as" Excel function, so that i can work only with my Save function and ignore Excel's one?

    Thanks!

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    set the change flag

    [vba]

    ActiveWorkbook.Saved = True
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    Oct 2007
    Posts
    45
    Location
    Thank you soo much!!

    It worked fine!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •