Hello,
I really apprecite the help. The macro solves my problem. But what if I
have a different data in the same column below 'temp'?
Thank you,
Dhawal
> Dhawal
>
[quoted text clipped - 35 lines]
> >
> > Dhawal...
PeterAtherton - 02 Oct 2006 22:31 GMT
Dhawal
Well, the macro will only work on the selection. Different data below will
not be affected; so do not select the entire column. However, if you have
selected data in column A then the entire column B will be deleted.
I'll have another look and maybe I can delete just the data in column B if
that would be better for you.
Regards
Peter
> Hello,
>
[quoted text clipped - 44 lines]
> > >
> > > Dhawal...
PeterAtherton - 02 Oct 2006 22:50 GMT
I've rewritten the macro so that the offset column is just cleared rather
than deleted, I'm sure that it is safer this way.
Sub CONCAT()
' Only select the column that you want to
' join the data - not both columns.
For Each c In Selection
c.Value = c & ": " & c.Offset(0, 1)
c.Offset(0, 1).Value = ""
Next
End Sub
Hope this answers your query.
Regards
Peter
> Dhawal
>
[quoted text clipped - 56 lines]
> > > >
> > > > Dhawal...
PeterAtherton - 03 Oct 2006 10:03 GMT
Dhawal
Better still this will only work if the selected cells contain "Temp" and
will ignore other entries.
Sub CONCAT()
' Only select the column that you want to
' join the data - not both columns.
For Each c In Selection
If Trim(LCase(c)) = "temp" Then
c.Value = c & ": " & c.Offset(0, 1)
c.Offset(0, 1).Value = ""
End If
Next
End Sub
Sorry for the delay - I went to bed.
Peter
> Hello,
>
[quoted text clipped - 44 lines]
> > >
> > > Dhawal...
Dhawal - 04 Oct 2006 05:37 GMT
Thank you Peter,
That absolute solves my problem. I really appreciate your help.
Dhawal
> Dhawal
>
[quoted text clipped - 65 lines]
> > > >
> > > > Dhawal...