Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default supressing a message in vba

Hi



I have a button to export and cut rows to another spreadsheet. Excel promts
me on moving the rows that I have named ranges on the sourcesheet with the
same names as on the destination sheet. Would I like to keep the names the
same or change them?



I always want to keep the named ranges the same so that the rows when added
will work the same as they will contain the same data in the named ranges.



Can someone tell me how to stop the messages?



Thanks

Rob



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default supressing a message in vba

Try

Application.DisplayAlerts = False
' your code here
Application.DisplayAlerts = True


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Rob Hargreaves" wrote in message
...
Hi



I have a button to export and cut rows to another spreadsheet.
Excel promts me on moving the rows that I have named ranges on
the sourcesheet with the same names as on the destination
sheet. Would I like to keep the names the same or change them?



I always want to keep the named ranges the same so that the
rows when added will work the same as they will contain the
same data in the named ranges.



Can someone tell me how to stop the messages?



Thanks

Rob





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default supressing a message in vba

Thanks Chip thats a great help

"Chip Pearson" wrote in message
...
Try

Application.DisplayAlerts = False
' your code here
Application.DisplayAlerts = True


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Rob Hargreaves" wrote in message
...
Hi



I have a button to export and cut rows to another spreadsheet. Excel
promts me on moving the rows that I have named ranges on the sourcesheet
with the same names as on the destination sheet. Would I like to keep
the names the same or change them?



I always want to keep the named ranges the same so that the rows when
added will work the same as they will contain the same data in the named
ranges.



Can someone tell me how to stop the messages?



Thanks

Rob









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
How can I use AutoFilter without supressing rows ? Alexandre Excel Discussion (Misc queries) 1 March 5th 07 09:44 PM
Supressing the Macro security message programmatically. peng wong Excel Programming 1 June 8th 05 11:55 AM
Supressing CHR13 or vbCr write in text file Edwin Niemoller[_2_] Excel Programming 0 March 9th 05 08:38 PM
Supressing Update Links Dialog Box Jeff Excel Programming 2 December 17th 04 11:21 PM
Displaying a message in a message box without requiring user to click anything to proceed Android[_2_] Excel Programming 2 June 25th 04 06:44 PM


All times are GMT +1. The time now is 03:14 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"