Jump to content
Sign in to follow this  

Merging cells in Excel without the warning popup.

Recommended Posts

Took me awhile to find it.  I was just comming to the fourm here to ask when I found it.  A quick search does not turn op this method being talked about so since I'm here, I'll post in the example fourm.

To merge cells.

$oExcel.DisplayAlerts = False
$oExcel.Activesheet.Range('A1:D1').MergeCells = True
$oExcel.DisplayAlerts = True

You can turn off the warning.  Do your merge and then turn the warning on again.  Supposilty this turns off all excell warnings so you definitly want to turn it back on after you do the merge.


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...