Hello there,
If I understood you correctly you just want a macro that when selected will add a string to the beginning of the cell? If this is correct then I think this will accomplish what you are trying to do.
While holding down the Alt key your keyboard press F8. This will bring up the Macro window. In the macro name space provided, clear the contents and the type AddString. Then select the Create option.
In between the lines of code
and
paste the following
Dim str As String 'declare variables
str = ActiveCell.Value 'set the variable str equal to the active cell's value
ActiveCell.Value = "YourTextHere" & " " & str 'active cell's value is now equal to the text YourTextHere and what was orginally in the activecell
So the entire code should look like this
Sub AddString()
Dim str As String
str = ActiveCell.Value
ActiveCell.Value = "YourTextHere" & " " & str
End Sub
Close the VBA Window and to run it select the cell you wish to alter press Alt+F8 again then select the AddString Macro and select run.
Let me know if this works!
Thanks!
Bookmarks