Link to home
Create AccountLog in
Avatar of Seamus2626
Seamus2626Flag for Ireland

asked on

Say yes to prompt

Hi,

I have a macro which runs a report where the pivots refresh. On the refresh i am often promted

"Do you want to replace the contents of the destination cells in Screen"
YES/NO

Can i put a line of code after pivot refresh to surpress this message, always saying YES.

Thanks
Seamus
Avatar of Rory Archibald
Rory Archibald
Flag of United Kingdom of Great Britain and Northern Ireland image

No - you have to clear the area before you refresh, I think (assuming DisplayAlerts doesn't work)
ASKER CERTIFIED SOLUTION
Avatar of Rory Archibald
Rory Archibald
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Seamus2626

ASKER

Your right, it does!!

Thanks
Seamus