VBA If Isnull

IanT

Registered User.
Local time
Today, 19:58
Joined
Nov 30, 2001
Messages
191
Hi

I am using this code:

If IsNull((Range("ColA")(txtRow.Text).Value)) = False Then
txtColA.Text = Range("ColA")(txtRow.Text).Value
End If

to pull data from a cell to a text box on a userform but it still errors if there is a null value in the cell. Has anyone any ideas why!
 
VBA If isnull

Hi

Yes... if there is a value in the cell it works fine.
 
I think your syntax is a little screwed ...
What do you mean by Range("ColA")(txtRow.Text).Value ?
 

Users who are viewing this thread

Back
Top Bottom