LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 465
Default Event recognition.

In article , Claus Busch
writes

Sub WriteDate()
Dim rngC As Range

For Each rngC In Selection
rngC.Offset(, -1) = IIf(Len(rngC) 0, Date, "")
Next
End Sub

You can create a shortcut to run the macro. Handling would be easier with shortcut


Regards
Claus B.



Hi Claus

Yes , this is a good solution. Thanks.

It does put the date in all cells of the selected range , rather than
only in the cell to the left , but this is accommodated by selecting a
single cell rather than the pasted range.

Thanks again Claus.



Best Wishes

 
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 Recognition Nivek Excel Discussion (Misc queries) 2 October 21st 08 12:56 PM
Barcode recognition carrieann Excel Discussion (Misc queries) 1 March 18th 08 02:26 AM
Alphanumeric Recognition NewToVB Excel Programming 2 January 25th 08 04:39 PM
Formula for recognition JamesInNeedFootballInDeed Excel Discussion (Misc queries) 6 December 30th 07 07:00 AM
Letter recognition General[_2_] Excel Programming 2 May 13th 07 09:59 AM


All times are GMT +1. The time now is 02:56 PM.

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"