Hi Katie,
The code you are using will only work with numbers. CLNG is used to to convert a value into a long integer, and the .Value also implies that you only want to deal with a number. Try getting rid of those bits of code that imply that Vres is a number.
I hope this helps, please let me know!
Regards,
David
Please remember, your request is clearer if you attach a sample workbook.
- Click on Go Advanced and click on the Paper Clip.
If this has been of assistance, please advise. A little thanks goes a long way.
- Please click on the *Add Reputation button at the bottom of helpful responses.
Please mark your thread as SOLVED:
- Click Thread Tools above your first post, select "Mark your thread as Solved".
If several people have responded, when you reply please make it clear WHO you are responding
to by mentioning their name.
Bookmarks