Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default complex Cell

I had a cell, that consist of 2 cells (1 row, 2 columns).
How can I recognize from range object, that I recived,
that the cell is complex?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default complex Cell

Thanks,
but how can I understand with wich cell my cell is merged?

BR, Al

-----Original Message-----
Each range has a property called MergeCells. If you

select a cell from
the range and the property is set to True then you have

a cell which is
merged to others.

regards,

Nils

Al wrote:
*I had a cell, that consist of 2 cells (1 row, 2

columns).
How can I recognize from range object, that I recived,
that the cell is complex? *

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default complex Cell

One way:

Option Explicit
Sub testme02()

Dim myCell As Range
Set myCell = ActiveCell

If myCell.MergeCells = True Then
MsgBox Prompt:="found at: " _
& myCell.Address(0, 0) & " Of " _
& myCell.MergeArea.Address(0, 0)
End If

End Sub




Al wrote:

Thanks,
but how can I understand with wich cell my cell is merged?

BR, Al

-----Original Message-----
Each range has a property called MergeCells. If you

select a cell from
the range and the property is set to True then you have

a cell which is
merged to others.

regards,

Nils

Al wrote:
*I had a cell, that consist of 2 cells (1 row, 2

columns).
How can I recognize from range object, that I recived,
that the cell is complex? *

.


--

Dave Peterson

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
complex color fill conditions- if statements or complex formula? lilly8008 Excel Discussion (Misc queries) 1 December 18th 09 04:57 AM
Changing the value in a cell (but a bit more complex than that <G) RobFJ Excel Worksheet Functions 3 January 16th 08 05:19 PM
Complex Index Match Help (or at least complex to me) Jennifer Reitman Excel Discussion (Misc queries) 3 August 10th 06 08:51 PM
creating a complex cell Chris Excel Worksheet Functions 1 December 14th 05 01:12 AM
How to insert a complex formula in a cell with VBA mircea Excel Worksheet Functions 6 January 4th 05 08:12 PM


All times are GMT +1. The time now is 08:59 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"