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

I've got a macro which among other things merges cells. When the
macro runs it gives the warning:

"The selection contains multiple data values. Merging into one cell
will keep the upper-left most data only."

I want to automatically prevent this message being displayed as there
are several merges taking place and users will complain about having
to press "OK" every time, is it possible to suppress this type of
message and how can it be done?

Thanks!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default Merging Cells

Try this at the start of your macro but don't forget to set it to TRUE at the
end of your code.

Application.DisplayAlerts = False

Mike


" wrote:

I've got a macro which among other things merges cells. When the
macro runs it gives the warning:

"The selection contains multiple data values. Merging into one cell
will keep the upper-left most data only."

I want to automatically prevent this message being displayed as there
are several merges taking place and users will complain about having
to press "OK" every time, is it possible to suppress this type of
message and how can it be done?

Thanks!


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
merging cells and eliminating spaces for empty cells Jill Excel Discussion (Misc queries) 2 April 2nd 10 07:43 PM
Formula for merging cells/re sizing cells Mathicas Excel Discussion (Misc queries) 1 September 29th 08 08:16 PM
Merging three cells into one Randi Excel Discussion (Misc queries) 3 July 25th 08 04:18 PM
merging cells together but keeping all data from the cells Pete C[_2_] Excel Discussion (Misc queries) 3 May 16th 08 10:14 PM
merging 3 cells into 1 [email protected] Excel Discussion (Misc queries) 5 October 20th 06 08:43 PM


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