![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Feb 2002
Posts: 7
|
I have a selection.merge command in my macro on a set of cells with the same value. This causes Excel to prompt me "Keep only value in top cell?" to which I have to click "Yes". This totally defeats the purpose of my macro, which is to eliminate user intervention. There must be something I can add to my macro to merge without prompting the user?
|
|
|
|
|
|
#2 |
|
New Member
Join Date: Feb 2002
Location: Washington State
Posts: 33
|
Add the following prior to the selection merge:
Application.DisplayAlerts=False and before the end of the macro turn it back on: Application.DisplayAlerts=True Rick |
|
|
|
|
|
#3 |
|
New Member
Join Date: Feb 2002
Posts: 7
|
works like a charm!!! thanks!!!
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|