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: 117
Default Problem with macro triggered by worksheet change

I`m pretty new to VBA in Excel. What I`m trying to do is to
trigger a macro when the user changes a value in a particular column
(uses a drop-down list).

I created the following macro in VBE by double-clicking on "This
Workbook", clicking on "(General)" in the left drop-down of the bottom
window, and selecting "Workbook Change" in the right drop-down list.

The macro is:

Private Sub Workbook_Change(ByVal target As Range)
If target.Column = 9 Then MsgBox "OK"
End Sub

I also tried putting quotes around the 9 ("9") and using the
letter of the column ("I").

The result is that nothing happens when I make a new selection in
the drop-down list in that column. I only have one worksheet, and it
is active.

What am I missing? Thanks, Alan
 
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 triggered by a cell value change Varne Excel Programming 5 May 16th 07 12:58 PM
combobox change event triggered without change Jacob Excel Programming 0 May 8th 07 03:53 PM
Code not getting triggered by change in value Baapi Excel Programming 3 March 15th 06 06:18 AM
Change event triggered by a named range Sean Excel Programming 4 August 1st 05 03:01 AM
macro triggered by a change to a cell Lee Excel Programming 2 July 3rd 04 12:04 AM


All times are GMT +1. The time now is 12:36 PM.

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"