Results 1 to 7 of 7

Thread: [RESOLVED] Excel: eliminate warning about saving changes?

Hybrid View

  1. #1
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Excel: eliminate warning about saving changes?

    I think something like this would work
    VB Code:
    1. xl.Application.DisplayAlerts = False

  2. #2

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Re: Excel: eliminate warning about saving changes?

    Quote Originally Posted by Hack
    I think something like this would work
    VB Code:
    1. xl.Application.DisplayAlerts = False
    It didn't work. Am I doing it right?
    VB Code:
    1. Private Sub Workbook_Open()
    2.     Application.DisplayAlerts = False
    3. End Sub
    I tried to place it in the procedures Workbook_Deactivate and Workbook_BeforeClose as well to no avail.
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

  3. #3

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Re: Excel: eliminate warning about saving changes?

    For now I can make do with this, though it's not too elegant -kind of makes me feel like I'm cheating
    VB Code:
    1. Sub Workbook_BeforeClose()
    2.    SendKeys vbTab
    3.    SendKeys vbCr
    4. End Sub
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

Posting Permissions

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



Click Here to Expand Forum to Full Width