Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Dear Daniel
Thank You, works a treat. If I wanted the same Facility to Column AD would the macro look like this and would I just paste in under the Previous Sub? Private Sub Worksheet_Change(ByVal Target As Range) If Target.Column < 30 Then Exit Sub If Target < "" Then Application.EnableEvents = False Target = Target & " (Receipt " & Target.Row & ")" Application.EnableEvents = True End If End Sub Thanks for your Help Stewart "Daniel.C" wrote: Hi. Paste the following macro in the sheet module : Private Sub Worksheet_Change(ByVal Target As Range) If Target.Column < 2 Then Exit Sub If Target < "" Then Application.EnableEvents = False Target = Target & " (Receipt " & Target.Row & ")" Application.EnableEvents = True End If End Sub HTH Daniel Hi All If I Have a Blank B10 and add text .Can text be added automatically to the end of that text ie "Hotels New York" in B10 Become "Hotels New York (Receipt 10)" and "Hotels New York" in B12 Become "Hotels New York (Receipt 12)" Thanks For Looking Stew |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Text color automatic | Setting up and Configuration of Excel | |||
Automatic text | Excel Worksheet Functions | |||
Addition on "text" cells | Excel Discussion (Misc queries) | |||
Automatic Text to column | Excel Discussion (Misc queries) | |||
Automatic colors for text | Excel Discussion (Misc queries) |