Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Senior Member
 
Posts: 118
Default

Quote:
Originally Posted by Claus Busch View Post
Hi,

Am Wed, 2 Apr 2014 17:27:14 +0100 schrieb sumesh56:

what you meant by Rows,count 3?


..Cells(rows.count,3).end(xlup).row
shows you the last row with values in column 3 (C)
For the range to look in you have to do no changes.
But you have to change E8 to G1.

I would like to see that after merging

the strings, i would delete Mystring and

the result should maintain.
have a nice day.


in G1 you have no trailing space behind your phrase. So you have to
insert the space with the code.
Try:

Sub Test()
Dim LRow As Long
Dim myStr As String
Dim rngC As Range

With ActiveSheet
LRow = .Cells(Rows.Count, 3).End(xlUp).Row
myStr = .Range("G1")
For Each rngC In .Range("C4:C" & LRow)
rngC = myStr & " " & rngC
Next
.Range("G1").ClearContents
End With
End Sub


Regards
Claus B.
--
Vista Ultimate SP2 / Windows7 SP1
Office 2007 Ultimate SP3 / 2010 Professional
Claus Busch,
thank you very much for the help. Your macro is perfect in all respect. have a nice day.
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
I am looking for a phrase Gideon Excel Programming 2 June 8th 09 06:36 PM
How to input cellcontent within worksheets if satisfies condition Vinitha Excel Worksheet Functions 0 August 3rd 06 12:58 PM
Delete a row with a certain phrase? dziw[_4_] Excel Programming 3 July 13th 06 11:42 PM
Delete a row with a certain phrase? dziw Excel Discussion (Misc queries) 1 July 13th 06 11:06 PM


All times are GMT +1. The time now is 07:50 AM.

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

About Us

"It's about Microsoft Excel"