LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 113
Default VBA multiple events

Chip,

As you know I am using the code on from you website and despite my attempts
and anothers (who is Excel savvy) we have been unable to get the below code
and the codes from your website to work. Your feedback is appreciated.

Rachel

"Chip Pearson" wrote:

If you are using the code on my site at
www.cpearson.com/Excel/DateTimeEntry.htm, you can modify the code as shown
below:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count 1 Then
Exit Sub
End If
On Error GoTo ExitSub:
Application.EnableEvents = False
If Target.Column = 1 Then ' column A
'''''''''''''''''''''''''''''
' code for short date entry
'''''''''''''''''''''''''''''
ElseIf (Target.Column = 2) Or _
(Target.Column = 16) Then ' column B or P
'''''''''''''''''''''''''''''
' code for short time entry
'''''''''''''''''''''''''''''
End If
ExitSub:
Application.EnableEvents = True
End Sub

This will allow for quick date entry in column A and quick time entry in
columns B and P.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel, 10 Years
Pearson Software Consulting
www.cpearson.com
(email on the web site)


"Rachel" wrote in message
...
I am attempting to create a workbook to use as a patient log, entering the
admission date into Column A, admission time into Column B, patient name
etc..into the following columns, with patient discharge time entered into
Column P. I am using a code for date and time entry that will allow me to
10
key the numbers and they will auto format. I however, have been
unsuccessful
in combining the codes so address the two issues: one being date and time
change and the changes being made in multiple columns. Any help would be
appreciated.

Thanks


 
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
Removing multiple duplicate events Father John Excel Worksheet Functions 10 April 13th 10 11:24 AM
Multiple combobox and change events jbrooxie Excel Programming 0 May 4th 06 03:17 PM
Multiple change events on same sheet JG Scott Excel Programming 4 January 19th 06 03:56 AM
Multiple Instancing of certain events ben Excel Programming 1 December 13th 05 07:26 PM
Workbook_Open - Multiple Events not all working Punsterr Excel Programming 2 October 6th 05 07:44 AM


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