Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to use "CONCATENATE" function in VBA
Hello
How can I do something like this I want to add to all cells in range Range("A:A").SpecialCells(xlCellTypeConstants) a prefix string like UT_ for example. I know there is a "character" but how i can use it for ma Range ____A_____B____ 1 | UT_string | | 2 | UT_string | | 3 | UT_string | | 4 | UT_string | | ........................... 40| UT_string | | 41| | | Thanks for response |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to use "CONCATENATE" function in VBA
if i understand correctly, maybe something like this
Sub addtext() Dim lastrow As Long Dim cell As Range Dim rng As Range lastrow = Worksheets("Sheet1").Cells(Rows.Count, "A").End(xlUp).Row Set rng = Range("A1:A" & lastrow) For Each cell In rng.Cells cell.Value = "UT_" & cell.Value Next cell End Sub -- Gary wrote in message oups.com... Hello How can I do something like this I want to add to all cells in range Range("A:A").SpecialCells(xlCellTypeConstants) a prefix string like UT_ for example. I know there is a "character" but how i can use it for ma Range ____A_____B____ 1 | UT_string | | 2 | UT_string | | 3 | UT_string | | 4 | UT_string | | .......................... 40| UT_string | | 41| | | Thanks for response |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Text "comparison" operator for "contains" used in an "IF" Function | Excel Worksheet Functions | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
Macro to concatenate into "B1" B2 thru B"x" based on new data in "Col A" | Excel Discussion (Misc queries) | |||
How to use "CONCATENATE" function in VBA | Excel Worksheet Functions | |||
Please add a "sheet" function like "row" and "column" functions | Excel Programming |