Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Calling macro on cell change


Hi.
I want to call a macro when some text is changed in a cell. How do you
reckon that can be done?

I tried calling the macro from worksheet_change method but that did
nothing for some reason.

Cheers


--
schoujar
------------------------------------------------------------------------
schoujar's Profile: http://www.excelforum.com/member.php...o&userid=26574
View this thread: http://www.excelforum.com/showthread...hreadid=399362

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Calling macro on cell change


Worksheet_Change should work... maybe the prob is in your
macro...

the ff code illustrates this (as what happens in my worksheet):

Private Sub Worksheet_Change(ByVal Target As Range)
MsgBox "Cell " & Target.Address & " now contains " & Target.Value
End Sub



schoujar Wrote:
Hi.
I want to call a macro when some text is changed in a cell. How do you
reckon that can be done?

I tried calling the macro from worksheet_change method but that did
nothing for some reason.

Cheers



--
T-®ex
------------------------------------------------------------------------
T-®ex's Profile: http://www.excelforum.com/member.php...o&userid=26572
View this thread: http://www.excelforum.com/showthread...hreadid=399362

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Calling macro on cell change


Worksheet_change works for all data that is typed into the cells.
But the data I am concerned with at the moment is chosen rom a
picklist.




T-®ex Wrote:
Worksheet_Change should work... maybe the prob is in your
macro...

the ff code illustrates this (as what happens in my worksheet):

Private Sub Worksheet_Change(ByVal Target As Range)
MsgBox "Cell " & Target.Address & " now contains " & Target.Value
End Sub



--
schoujar
------------------------------------------------------------------------
schoujar's Profile: http://www.excelforum.com/member.php...o&userid=26574
View this thread: http://www.excelforum.com/showthread...hreadid=399362

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Calling macro on cell change


by "picklist", do you mean the Data Validation list or list from "Pick
From Drop-down List..." context menu?
both still work for me...

what list are you using? (aside from the 2 above)



schoujar Wrote:
Worksheet_change works for all data that is typed into the cells.
But the data I am concerned with at the moment is chosen rom a
picklist.



--
T-®ex
------------------------------------------------------------------------
T-®ex's Profile: http://www.excelforum.com/member.php...o&userid=26572
View this thread: http://www.excelforum.com/showthread...hreadid=399362

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
macro that will change the font of a cell if i change a value jk Excel Discussion (Misc queries) 2 July 29th 08 04:39 PM
calling a macro jhahes[_25_] Excel Programming 6 August 4th 05 12:22 AM
Calling a macro from a key RWN Excel Programming 0 February 8th 05 05:19 AM
Calling Excel Macro From Vc++ via DDE hari Excel Programming 0 July 6th 04 12:50 PM
Calling macro in add-in. Clark B Excel Programming 1 July 24th 03 11:05 PM


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