Euro Currency tool Utility issue

somnath_it2006

Well-known Member
Joined
Apr 11, 2009
Messages
574
Hi All,

Today I found something strange in excel utility.
Below is the code from class module where I have used WithEvent and get the all worksheet events.

Code:
        Dim Cell As Range
        Dim Msg As String
        Dim TestCheck As Variant
        
        On Error Resume Next
        
        [COLOR="Red"]TestCheck = Target.Dependents.Cells.Address[/COLOR]
        
        If Err.Number <> 0 Then
            Exit Sub
        End If

Whenever I on the "Euro Currency Tool" utility from Add-Ins, above code does not works properly. It gives correct output from line "TestCheck = Target.Dependents.Cells.Address" but as well as generates the error code 9 (Subscript Out of Range).

If I off or uncheck the "Euro Currency Tool" from Add-Ins, then it works fine.


I don't know whats going on....

Please suggest.... because this code is the part of our company utility I have solve this.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
This worked for me with and without the Euro Currency Tools:

Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    Dim TestCheck As Variant
    Application.EnableEvents = False
    On Error Resume Next
    TestCheck = Target.Dependents.Address
    If Err.Number <> 0 Then
        GoTo Cleanup
    Else
        MsgBox TestCheck
    End If
Cleanup:
    Application.EnableEvents = True
End Sub
 
Upvote 0
Yes... now its working when I am using with "Application.EnableEvents = False".

Could you please tell me how Application events affecting for this "Euro Tool" only?

Because, without "Euro Tool" no need to add this line...
 
Upvote 0
I had to use it even without the Euro Currency Tools. For some reason the Dependents property wouldn't work otherwise.
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,259
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top