type mismatch error 13

whcmelvin

Board Regular
Joined
Jul 27, 2011
Messages
82
I am facing this error when i run this code. the values in SelectRangeAuto is all 0. all are empty cells. the error is caused by AllUnrealizedPandL = WorksheetFunction.Sum(SelectRangeAuto). Please help. Thanks

Code:
Dim SelectRangeAuto As Variant
Dim AllUnrealizedPandL As Double

    With Sheets(EmailSheetAuto)
        SelectRangeAuto = .Range(.Range("J2"), .Range("J2").End(xlDown))
        If .Range("J2").Value <> "" Then
            AllUnrealizedPandL = WorksheetFunction.Sum(SelectRangeAuto)
        End If
    End With
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
You could add a webbrowser control to the worksheet but I don't know if that supports Flash.

PS What java application is required?
 
Upvote 0
I'm not 100% sure that's needed to view Adobe Flash.

Anyway if you want to add a webbrowser goto the Developer tab, select ... and add it from the additional controls list.

Then you'll need to write code to navigate to the URL of that page.

That should allow you to display the chart on the worksheet.
 
Upvote 0
i only found microsoft web browser. but that one doesnt seems to be able to add anything. =X
How to write the code to navigate to that url?
 
Upvote 0

Forum statistics

Threads
1,224,602
Messages
6,179,839
Members
452,948
Latest member
UsmanAli786

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