#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 410
Default Count merged cells

I have a form and when it loads I want it to calculate how many merged
cells are in selection.

RnSz = Selection.Cells.MergeArea.Count - is what I thought it shoudl
be but it keeps giving me Application-defined or object-defined
error. I am not sure what this is telling me.

Any help is appreciated,
Jay
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 410
Default Count merged cells

On Oct 8, 6:53*am, jlclyde wrote:
I have a form and when it loads I want it to calculate how many merged
cells are in selection.

RnSz = Selection.Cells.MergeArea.Count *- is what I thought it shoudl
be but it keeps giving me Application-defined or object-defined
error. *I am not sure what this is telling me.

Any help is appreciated,
Jay


For those of you who are concerned, I found the answer. My current
selection was through S1:AI9, so I had to resize it first. so it is
now RnSz = Selection.resize(1,1).cells.mergearea.count.

Sorry,
Jay
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count with merged cells Excelerator Excel Discussion (Misc queries) 2 July 23rd 09 03:50 AM
Autofit Merged cell Code is changing the format of my merged cells JB Excel Discussion (Misc queries) 0 August 20th 07 02:12 PM
how do i link merged cells to a merged cell in another worksheet. ibbm Excel Worksheet Functions 3 April 27th 06 11:40 PM
Errors in COUNT, COUNTA, COUNTIF when counting merged cells Outback Excel Worksheet Functions 1 February 7th 06 04:29 PM
Sorting merged cellsHow do I sort merged cells not identically siz Laval Excel Worksheet Functions 1 November 3rd 04 09:40 PM


All times are GMT +1. The time now is 10:53 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"