Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am in a situation where I am having to reference merged cells in VBA. The
source of the data is not something I would have any control over or input into. This is a code sample I am using: r1.Offset(0, 1).Value * r1.Offset(0, 2).MergeArea(1, 1).Value r1.offset(0,1) is not a merged cell but r1.offset(0,2) should usually be a merged cell. I suppose it might not be on occasion, but that is not the case yet. Any caveats or other suggestions would be appreciated. In my limited testing, .MergeArea(1,1) returns the data, whether or not the cell is a merged cell. Thanks. --ron |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Problem with pasting special merged cells to merged cells | Excel Programming | |||
Referencing text in merged cells | Excel Worksheet Functions | |||
Autofit Merged cell Code is changing the format of my merged cells | Excel Discussion (Misc queries) | |||
Referencing a Merged cell | Excel Discussion (Misc queries) | |||
Sorting merged cellsHow do I sort merged cells not identically siz | Excel Worksheet Functions |