LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Execute a Macro when specific value is selected in a Range

I really need some help with this problem
I have a Time sheet with a row G7:G:12 that contains Data Validation List.
In this list I have one of many values named Holiday, what I like to do is
when you
select this value "holiday" form the drop down list in cell G7 it would
automatically trigger a macro to add 9:00 am to cell D7, 1.0 to cell E7 and
5:00 pm to cell F7.
It should work the same for the rest of the other rows from G8:G12. I would
actually would like just to paste a value of 7.00 to cell I7 where "Hours
Worked" are but the formula would be deleted, and the sheet will not be
useful.

A nother idea that I had was to validate the cells G7:G:12 so a message
would appear when the word "holiday" was chosen, but those cells already
have data validation to create the list, so no luck there.

I been looking in here in the excel newsreader and in goggle for similar
code so I could tweak it, but I do not understand enough VB to find similar
code out there that I could alter.
Thanks again for all your help, and hope I haven't been to much trouble this
last month asking for help in the forum, you guys are great help.
Any ideas are welcome
Kevin Brenner


 
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
Macro - specific range puiuluipui Excel Discussion (Misc queries) 3 May 10th 09 11:33 AM
How do I get a function to execute on a specific date in Excel? mfarino Excel Worksheet Functions 1 March 3rd 09 10:22 AM
How to run specific macro on selected worksheet? Harshad[_2_] Excel Discussion (Misc queries) 2 October 31st 08 06:56 AM
Identifying a Selected Range in a Macro DCSwearingen Excel Discussion (Misc queries) 4 April 25th 06 04:01 PM
Macro to print a selected range, not entire worksheet James C Excel Discussion (Misc queries) 3 October 19th 05 10:12 PM


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