LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 896
Default Automatic addition of Text

if you have a samll dataset and may change the cells by clicking them
one-by-one then use this macro

Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal
Target As Range)
Target = Target & " (Receipt " & Target.Row & ")"
End Sub

to use it press ALT+F11 which will move you to VBA window
then double-click on ThisWorkbook
to the right you should see a window showing "(General", click on it
and select Workbook
from the rightmost window select Workbook_SheetSelectionChange
and paste Target = Target & " (Receipt " & Target.Column & ")"

in between these 2 lines

Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal
Target As Range)

End Sub

HIH


On 17 Sty, 13:48, stew wrote:
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
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
Text color automatic Jackie Lamorie Setting up and Configuration of Excel 3 January 28th 09 07:44 PM
Automatic text Thor Excel Worksheet Functions 2 November 12th 06 02:04 PM
Addition on "text" cells ledzepe Excel Discussion (Misc queries) 2 October 27th 05 08:17 PM
Automatic Text to column dinesh Excel Discussion (Misc queries) 1 June 10th 05 02:38 PM
Automatic colors for text mogravy Excel Discussion (Misc queries) 1 April 19th 05 05:46 PM


All times are GMT +1. The time now is 06:58 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"