Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 168
Default monitoring range change

hi
i have some run problam with following code, please help.
Code is as under
------
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Set VRange = Range("BD1:BV600")
For Each cell In Traget
If Union(cell, VRange).Address = VRange.Address Then
MsgBox " The changed cell is in the input range."
End If
Next cell
End Sub
------
Error is = run time-error '13': type mismatch
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 168
Default monitoring range change

sorry again here with some more detail,

back ground color is yellow of = For Each cell In Traget


"Tufail" wrote:

hi
i have some run problam with following code, please help.
Code is as under
------
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Set VRange = Range("BD1:BV600")
For Each cell In Traget
If Union(cell, VRange).Address = VRange.Address Then
MsgBox " The changed cell is in the input range."
End If
Next cell
End Sub
------
Error is = run time-error '13': type mismatch

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default monitoring range change

Maybe it is only in the email, but "Traget" should be spelled "Target"

--
Regards,
Tom Ogilvy


"Tufail" wrote in message
...
sorry again here with some more detail,

back ground color is yellow of = For Each cell In Traget


"Tufail" wrote:

hi
i have some run problam with following code, please help.
Code is as under
------
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Set VRange = Range("BD1:BV600")
For Each cell In Traget
If Union(cell, VRange).Address = VRange.Address Then
MsgBox " The changed cell is in the input range."
End If
Next cell
End Sub
------
Error is = run time-error '13': type mismatch



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
Diabetic Monitoring streborluap Excel Discussion (Misc queries) 7 February 17th 09 10:16 AM
monitoring use Sanford Lefkowitz Excel Discussion (Misc queries) 3 October 20th 06 08:47 PM
monitoring a changing range of cells kevin Excel Discussion (Misc queries) 1 June 3rd 05 05:39 PM
monitoring a changing range of cells Kevin Excel Worksheet Functions 1 June 3rd 05 04:54 PM
Monitoring Changes teresa Excel Programming 2 December 13th 04 03:48 PM


All times are GMT +1. The time now is 02:03 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"