isString ? or IsNumber ? in VBA...

Terry_Orange

Board Regular
Joined
Jul 22, 2002
Messages
133
If I have a scalar, then is there a function I can call (or write) to determine if it is a string or a number.

for example a string I would parse, but an integer I would use in a statistical test.

Can anyone offer a solution ?
Thanks
TO.
 
Rick,

Of course, you're correct. I came across this thread while looking for an answer to my own issue, and answered incorrectly based upon my misinterpretation of Microsoft's explanation of the Val() function. Coincidentally, my own application issue is still unresolved, and your explanation of the use of Val() in this instance helps me to better understand why!

I believe the code as shown in this thread that works for the OP will work for me instead of Val(). Thanks for the lesson!
 
Upvote 0

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,223,275
Messages
6,171,126
Members
452,381
Latest member
Nova88

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