Macro error paste special with merged cells

G

graeme

I wrote a macro a while ago which works fine on my PowerBook G4 laptop
running OS 10.3 and Excel 2004. When I run it on my colleague's
PowerBook G3 laptop running OS 9.0.4 and Excel 2001 it falls over. Has
anyone had any experience of this:

The macro selects all the cells in a worksheet and does a paste special
to turn them all to values and this is where the os9 gets unstuck with
the following error message:

Run time error -1004 This operation requires the merged cells to be
identically sized.

I am pretty certain that the file which we are both operating on is the
same ie they both have merged cells but it runs ok on mine but not his.
Any ideas gratefully received.
 
J

JE McGimpsey

I wrote a macro a while ago which works fine on my PowerBook G4 laptop
running OS 10.3 and Excel 2004. When I run it on my colleague's
PowerBook G3 laptop running OS 9.0.4 and Excel 2001 it falls over. Has
anyone had any experience of this:

The macro selects all the cells in a worksheet and does a paste special
to turn them all to values and this is where the os9 gets unstuck with
the following error message:

Run time error -1004 This operation requires the merged cells to be
identically sized.

I am pretty certain that the file which we are both operating on is the
same ie they both have merged cells but it runs ok on mine but not his.
Any ideas gratefully received.

I'm not familiar with that, and I can't test XL01 right now, but an
alternative would be to use

With Worksheets("Sheet1").UsedRange
.Value = .Value
End With

instead. I know I've used that in XL01.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top