Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default How do you capture events?

Ok, I'm missing something here. I've tried copying events from posts, help
files, having VB create them but they do not work. I cannot get an event to
fire. Can someone tell me how to get any event to fire?

Specifically, how do you add event handling to a set of macros?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 86
Default How do you capture events?

Please read:

http://cpearson.com/excel/events.htm

very carefully. Of critical importance is where the macros are stored -
modules, worksheet code, etc. If you put them in the wrong place, they won't
work.
--
Gary's Student


"Scott buckwalter" wrote:

Ok, I'm missing something here. I've tried copying events from posts, help
files, having VB create them but they do not work. I cannot get an event to
fire. Can someone tell me how to get any event to fire?

Specifically, how do you add event handling to a set of macros?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default How do you capture events?

Are you storing them in the correct place?

Try this simple one


Private Sub Worksheet_SelectionChange(ByVal Target As Range)
MsgBox "hello"
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.



--

HTH

RP
(remove nothere from the email address if mailing direct)


"Scott buckwalter" wrote in
message ...
Ok, I'm missing something here. I've tried copying events from posts, help
files, having VB create them but they do not work. I cannot get an event

to
fire. Can someone tell me how to get any event to fire?

Specifically, how do you add event handling to a set of macros?



Reply
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
Excel screen capture to capture cells and row and column headings jayray Excel Discussion (Misc queries) 5 November 2nd 07 11:01 PM
Capture Excel Events from other application George[_25_] Excel Programming 5 February 26th 05 11:49 PM
How to capture row of a string value Glen Mettler[_4_] Excel Programming 1 November 18th 04 01:53 PM
how to capture data Alberto Brivio Excel Programming 1 August 13th 04 01:27 PM
Up Capture Alex Excel Programming 0 July 26th 04 08:09 PM


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