![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Apr 2002
Location: Newcastle upon Tyne
Posts: 762
|
In an excel worksheet I have created a time-sheet that measures actual hours worked and flexi-time recrued. As part of the flexi-time policy an individual is not allowed to go below –2:00hours into deficit during a monthly period. What I would like to do is have the on_close function check a named range and e-mail me if a sheet is saved and the users time is = to or greater than –2:01 hours.
Any suggestions on how to go about this would be great. [ This Message was edited by: Jak on 2002-05-07 07:53 ] [ This Message was edited by: Jak on 2002-05-15 06:30 ] |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Hi Jak
Which rows or columns contain the username and corresponding flag value? User name Cell A2 Related value Cell B2 Something like that. What is your sheet name? What is your default mail manager? Outlook? Outlook Express? Other? Which version of Office are you using? Thanks, Tom |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Apr 2002
Location: Newcastle upon Tyne
Posts: 762
|
Hi TsTom
User.Name cell = B6 Range to be monitored against –2:00 hour deficit = “J18:J45” Sheet.Name = TIMESHEET Mail manager = Outlook Office version = Microsoft Office 2000 Professional I hope this info is of use and you will be able to give me some insight into the problem. Thanks. |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Apr 2002
Location: Kissimmee, Florida
Posts: 384
|
Covert may be a problem, more recent versions of office (2000 onwards at least) have built in ability to notify users when other applications eg Excel are trying to use Outlook).
Another alternative would be if you are in a network environment why don't you add some autoclose code which updates a networked file with the info you need, this can then be made covert. ps Downside of this is that any user that can write to this file could also amend their details if they know its location therefore you will need to hide and protect the code within your VBA project.
__________________
Hope This Helps. Sean. Digest of Homes WinXP, XL XP |
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
I agree with SOS on the disk file option.
I do not understand the first statement about user notification. I have several workbooks in 2000 which auto send using Outlook and have never been prompted. Not even notified in the statusbar. If possible, I'd like to see your book. or if you are a bit fluent with the VBA language, I can just send you a couple examples of workbooks using Outlook. There are also multiple examples of email automation on this board. See search. My email address is below. Thanks, Tom P.S. SOS, If you don't mind, would you explain your first paragraph a bit more? Thanks |
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Apr 2002
Location: Newcastle upon Tyne
Posts: 762
|
Thanks S O S and TsTom for your contributions. I have looked through the previous forums relating to e-mail, hyperlinks and networked files. I know have enough info and code to make an informed choice on which methodology to adopt.
This subject is now closed |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|