Link to home
Start Free TrialLog in
Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

VB.net Excel Add-in error comparing DataGridView Cell to Excel Cell

Hi

In comparing a DataGridView cell value to an Excel cell value I get the error below.
How would I change the code to not cause any errors no matter what the values,
including nulls. Thanks

If Me.DataGridView1.Rows(10).Cells(c).Value <> Globals.ThisAddIn.Application.Cells(oExcelRow, c).value Then
Image1.jpg
ASKER CERTIFIED SOLUTION
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Murray Brown

ASKER

Thanks