Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

merge cells on a shared workbook

Status
Not open for further replies.

funkmonsteruk

IS-IT--Management
Feb 8, 2002
210
GB
I have an excel macro which takes the selection of cells and changes their color, merges them and inserts some text.

I'm having a bit of trouble when i set the workbook to shared, i get an error message saying - Run-Time error 1004
Unable to set the merge cells property of the range class.

The merge part of the code goes:

With Selection
.mergecells = true

This only occurs when the workbook is in shared mode, which it needs to be in... Can anybody help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top