Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting up events in Excel

Status
Not open for further replies.

bhujanga

Programmer
Oct 18, 2007
181
0
0
US
I was reading an earlier post and saw that it is apparently possible to attach VBA code to events that occur on a worksheet (such as worksheet change event). I didn't know this was possible - I've always set up command buttons to get these things done. So I'm fishing around now trying to figure out what you do to actually set up this sort of thing and can't find anything. Can someone tell me how to get to these events?
Thank you.
 


Hi,
Can someone tell me how to get to these events?
Right-click the Sheet Tab and select View code.

This makes the code window for this sheet visible.

Above the code window are 2 dropdowns. In the LEFT dropdown, select Worksheet. In the RIGHT dropdown select one of the Worksheet events.

Use the Project Explorer to select other Excel Worksheet or ThisWorkbook objects.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top