Try widening some columns (and increasing rowheights) and try it again.
May be, u dont understood that I want.
I merge 2 cells (A1+B1). eg: width of the cell is 20 ( width of A1 is 10,
and width of B1 is 10). So if I make/set width of E1 to be 20, why its look
as no equal. Because when I type in both cells with the same font, so number
character in the cell is not equal.
> Try widening some columns (and increasing rowheights) and try it again.
>
[quoted text clipped - 66 lines]
>
> Dave Peterson
Dave Peterson - 12 Nov 2006 17:29 GMT
Maybe you want .columnwidth.
> May be, u dont understood that I want.
> I merge 2 cells (A1+B1). eg: width of the cell is 20 ( width of A1 is 10,
[quoted text clipped - 78 lines]
> >
> > Dave Peterson

Signature
Dave Peterson
Bpk. Adi Wira Kusuma - 12 Nov 2006 17:58 GMT
Yes, the main of my purpose is how to make height/width of a cell egual to
height/width of a merge cell. eg: width of merge cell is 20 ( width of A1 is
10, and width of B1 is 10). So I wanna make/set width of E1 to be equal to
the marge cell.
How to do it?
> Maybe you want .columnwidth.
>
[quoted text clipped - 84 lines]
>
> Dave Peterson
Dave Peterson - 12 Nov 2006 20:07 GMT
Option Explicit
Sub testme()
Dim TotalColumnWidth As Double
Dim myCell As Range
With ActiveSheet
TotalColumnWidth = 0
For Each myCell In .Range("a1").MergeArea.Rows(1).Cells
TotalColumnWidth = TotalColumnWidth + myCell.ColumnWidth
Next myCell
.Range("E1").ColumnWidth = TotalColumnWidth
End With
End Sub
> Yes, the main of my purpose is how to make height/width of a cell egual to
> height/width of a merge cell. eg: width of merge cell is 20 ( width of A1 is
[quoted text clipped - 97 lines]
> >
> > Dave Peterson

Signature
Dave Peterson
Ragdyer - 13 Nov 2006 01:10 GMT
Why does this sound like someone is trying to overcome *the* error message
of:
<<"Cannot paste because the copy area and the paste area are not the same
size and shape.">>
when using merged cells?

Signature
Regards,
RD
---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
> Option Explicit
> Sub testme()
[quoted text clipped - 113 lines]
> > >
> > > Dave Peterson
Dave Peterson - 13 Nov 2006 02:17 GMT
I didn't guess that. I figured that the OP was making some kind of form that
needed to be pretty (whatever that means).
> Why does this sound like someone is trying to overcome *the* error message
> of:
[quoted text clipped - 141 lines]
> >
> > Dave Peterson

Signature
Dave Peterson