I have a range variable called 'DataVar' which is always a single cell range. DataVar is defined as a range.
I want to test to see if the first character in the cell DataVar represents is a number like thus:
If IsNumeric(Left(DataVar.Text, 1)) = True Then
DataVar.Copy
I am getting the error 'Object variable or With block variable not set' because I think DataVar is defined as a range. However this works if 'Activecell' takes the place of 'DataVar'
I just want to see if the contents of DataVar's first character is a number. Thank you.
I want to test to see if the first character in the cell DataVar represents is a number like thus:
If IsNumeric(Left(DataVar.Text, 1)) = True Then
DataVar.Copy
I am getting the error 'Object variable or With block variable not set' because I think DataVar is defined as a range. However this works if 'Activecell' takes the place of 'DataVar'
I just want to see if the contents of DataVar's first character is a number. Thank you.