HI,
Attempting to prefix any populated cells with a project title. The projet title is in cell d2. I do not have the sheet title as the sheet is created by copying and pasting a generic sheet and populating it with info from a userform (this is to create a project page when people use this central document). The person then manually types milestones in. Before I copy and paste these milestones from this page to a generic milestone page, I need it to prefix every milestone with the project title. I need the code to stop at the last row with data in it but for some reason I am really struggling.
Here is what I have (The Set WorkRng line is just made up and is what I really need help with)
Dim lastRow As Long
Dim WorkRng As Range
Dim addstr As String
lastRow = ActiveSheet.Cells(Rows.Count, "B").End(xlUp).Row
addstr = Range("d2").Value
Set WorkRng = Range("B:B" & lastRow)
For Each Rng In WorkRng
Rng.Value = Rng.Value & addstr
Next
End Sub
Help!?
The simpler the code the better, i like to be able to understand what I am using
Bookmarks