Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 190
Default supress message

hi,

i would like to know how i can supress te following message:

"do you want to replace the contents of the destination cells in Sheet1?"

i have DisplayAlerts = False in my code, but its not helping. i am not
sure what to do.

thanks in advance,
geebee

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 190
Default supress message

basically it is when a pivot table includes or reflects more rows than it
currently reflects. no majic code here.



"Don Guillett" wrote:

Post your code


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"geebee" (noSPAMs) wrote in message
...
hi,

i would like to know how i can supress te following message:

"do you want to replace the contents of the destination cells in Sheet1?"

i have DisplayAlerts = False in my code, but its not helping. i am not
sure what to do.

thanks in advance,
geebee



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default supress message

I am having the same/similar problem. I have a 'temporary' sheet that
I delete and re-load but do not want to see the caution/warning
message verifying the deletion. Here is the code I am using.

Sub RawData_Reset()

' delete & re-create the worksheet "RawData"
Sheets("RawData").Select
ActiveWindow.SelectedSheets.Delete

Sheets("DataBase").Select
ActiveWorkbook.Worksheets.Add.Name = "RawData"

End Sub


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default supress message

Never mind. I found an older posting about "DisplayAlerts". My
problems was that I did not have "Application." in front of it.




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default supress message

You may like this better but why are you doing this?

Sub RawData_Reset()
' delete & re-create the worksheet "RawData"
application.displayalerts=false
Sheets("RawData").Delete
application.displayalerts=true
Sheets("DataBase").Select 'WHY ???
ActiveWorkbook.Worksheets.Add.Name = "RawData"
End Sub



--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"cubbybear3" wrote in message
ups.com...
I am having the same/similar problem. I have a 'temporary' sheet that
I delete and re-load but do not want to see the caution/warning
message verifying the deletion. Here is the code I am using.

Sub RawData_Reset()

' delete & re-create the worksheet "RawData"
Sheets("RawData").Select
ActiveWindow.SelectedSheets.Delete

Sheets("DataBase").Select
ActiveWorkbook.Worksheets.Add.Name = "RawData"

End Sub



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default supress message

I did add the "application.displayalerts=false/true" statements.
just did not have them in the code when I did the cut/paste.

As for why the "Sheets("DataBase").Select", to make sure the
new worksheet is always in the same place (after the DATABASE
sheet).

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default supress message


ActiveWorkbook.Worksheets.Add after:=Sheets("DataBase")
ActiveSheet.Name = "RawData"

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"cubbybear3" wrote in message
oups.com...
I did add the "application.displayalerts=false/true" statements.
just did not have them in the code when I did the cut/paste.

As for why the "Sheets("DataBase").Select", to make sure the
new worksheet is always in the same place (after the DATABASE
sheet).


  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default supress message

Thanks Don. I like finding new ways to 'tighten up' my code. That is
why I frequent this newsgroup.
-pb

  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default supress message

Hope it helped


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"cubbybear3" wrote in message
oups.com...
Thanks Don. I like finding new ways to 'tighten up' my code. That is
why I frequent this newsgroup.
-pb


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Supress Warning Message David Billigmeier Excel Programming 2 October 2nd 06 07:16 PM
Supress error message Jim Anderson Excel Discussion (Misc queries) 3 December 1st 04 12:55 AM
supress activex message on open workbook Clemens Hoogevonder Excel Programming 2 November 5th 04 04:52 PM
Supress "now printing" message jasonsweeney[_63_] Excel Programming 2 April 8th 04 02:16 AM
supress Solver message PB Excel Programming 0 November 19th 03 02:29 PM


All times are GMT +1. The time now is 03:35 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"