ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   change event (https://www.excelbanter.com/excel-discussion-misc-queries/145849-change-event.html)

smonsmo

change event
 
I have a worksheet that calculates the amount of job hours per employee and
customer. These times are entered each day as I recieve the report in cells
d34:p43. What I would like to be able to do is input the time, adding values
to several of these cells in the above range. When I click the cursor on any
other cells outside that range, I would like the workbook to automatically
save itself.
Thanks for the help.
Steve

Gary''s Student

change event
 
Put the following in worksheet code:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Intersect(Target, Range("D34:P34")) Is Nothing Then
ActiveWorkbook.Save
End If
End Sub

--
Gary''s Student - gsnu200727


"smonsmo" wrote:

I have a worksheet that calculates the amount of job hours per employee and
customer. These times are entered each day as I recieve the report in cells
d34:p43. What I would like to be able to do is input the time, adding values
to several of these cells in the above range. When I click the cursor on any
other cells outside that range, I would like the workbook to automatically
save itself.
Thanks for the help.
Steve



All times are GMT +1. The time now is 01:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com