Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 10-09-2005, 08:22 AM
rgarber50 rgarber50 is offline
Forum Contributor
 
Join Date: 04 Jul 2004
Posts: 33
rgarber50 is becoming part of the community
Data Val list Excel 97 fire macro

Please Register to Remove these Ads

I have a column of cells which uses a data val list for entering data. The val list is dynamic and resides on the wks. When a user selects from the val list in a particular cell I would like a macro triggered which will place the date and time in the cell directly to the right (ie one column over, same row).

I need help in how to trigger the macro because Excel 97 events are not fired from data entered using a val list residing on the wks.

Thanks
Richard
Reply With Quote
  #2  
Old 10-09-2005, 10:05 AM
Debra Dalgleish
Guest
 
Posts: n/a
Re: Data Val list Excel 97 fire macro

You can use the Calculate event, as described here:

http://www.contextures.com/xlDataVal08.html#Change

rgarber50 wrote:
> I have a column of cells which uses a data val list for entering data.
> The val list is dynamic and resides on the wks. When a user selects
> from the val list in a particular cell I would like a macro triggered
> which will place the date and time in the cell directly to the right
> (ie one column over, same row).
>
> I need help in how to trigger the macro because Excel 97 events are not
> fired from data entered using a val list residing on the wks.
>
> Thanks
> Richard
>
>



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

Reply With Quote
  #3  
Old 10-09-2005, 11:05 AM
Dave Peterson
Guest
 
Posts: n/a
Re: Data Val list Excel 97 fire macro

Maybe you could put a button from the Forms toolbar right next to the cell with
data|validation.

Then have the user hit that.

rgarber50 wrote:
>
> I have a column of cells which uses a data val list for entering data.
> The val list is dynamic and resides on the wks. When a user selects
> from the val list in a particular cell I would like a macro triggered
> which will place the date and time in the cell directly to the right
> (ie one column over, same row).
>
> I need help in how to trigger the macro because Excel 97 events are not
> fired from data entered using a val list residing on the wks.
>
> Thanks
> Richard
>
> --
> rgarber50
> ------------------------------------------------------------------------
> rgarber50's Profile: http://www.excelforum.com/member.php...o&userid=11350
> View this thread: http://www.excelforum.com/showthread...hreadid=474583


--

Dave Peterson
Reply With Quote
  #4  
Old 10-09-2005, 11:13 AM
rgarber50 rgarber50 is offline
Forum Contributor
 
Join Date: 04 Jul 2004
Posts: 33
rgarber50 is becoming part of the community
Data Val list Excel 97 fire macro

I've seen this, but it seems to require that the user hit a button to trigger the macro? Is there no way to make this event driven?

Richard





Quote:
Originally Posted by Debra Dalgleish
You can use the Calculate event, as described here:

http://www.contextures.com/xlDataVal08.html#Change

rgarber50 wrote:
> I have a column of cells which uses a data val list for entering data.
> The val list is dynamic and resides on the wks. When a user selects
> from the val list in a particular cell I would like a macro triggered
> which will place the date and time in the cell directly to the right
> (ie one column over, same row).
>
> I need help in how to trigger the macro because Excel 97 events are not
> fired from data entered using a val list residing on the wks.
>
> Thanks
> Richard
>
>



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html
Reply With Quote
  #5  
Old 10-09-2005, 01:05 PM
Debra Dalgleish
Guest
 
Posts: n/a
Re: Data Val list Excel 97 fire macro

If you read the last paragraph in that section, it describes how to use
the Calculate event. There's no button required. Download the sample
file that's mentioned (ProductsList97Calc.zip), and you'll see how it works.

rgarber50 wrote:
> I've seen this, but it seems to require that the user hit a button to
> trigger the macro? Is there no way to make this event driven?
>
> Richard
>
>
>
>
>
> Debra Dalgleish Wrote:
>
>>You can use the Calculate event, as described here:
>>
>>http://www.contextures.com/xlDataVal08.html#Change
>>
>>rgarber50 wrote:
>>
>>>I have a column of cells which uses a data val list for entering

>>
>>data.
>>
>>>The val list is dynamic and resides on the wks. When a user selects
>>>from the val list in a particular cell I would like a macro

>>
>>triggered
>>
>>>which will place the date and time in the cell directly to the right
>>>(ie one column over, same row).
>>>
>>>I need help in how to trigger the macro because Excel 97 events are

>>
>>not
>>
>>>fired from data entered using a val list residing on the wks.
>>>
>>>Thanks
>>>Richard
>>>
>>>

>>
>>
>>--
>>Debra Dalgleish
>>Excel FAQ, Tips & Book List
>>http://www.contextures.com/tiptech.html

>
>
>



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump