View Single Post
 
Old 03-24-2015, 11:23 AM
ketangarg86 ketangarg86 is offline Windows 8 Office 2013
Novice
 
Join Date: Oct 2014
Posts: 11
ketangarg86 is on a distinguished road
Default

Could it be the case that in my excel sheet the cell value is formatted as big decimal and in my outlook vba I am using long/integer. Unfortunately, I cannot change the excel attachment format.

Could this be the reason for subscript out of range error and macro not running properly.

If the excel cell value = -0.2 and iCount value as -15 (this works fine)
If the excel cell value = -10.2 and iCount value as -15 (this gives subscript error)
Reply With Quote