Link to home
Start Free TrialLog in
Avatar of Peter Chan
Peter ChanFlag for Hong Kong

asked on

VBa overflow error

Dear,
I get overflow error, due to the below line
                    RowID2 = c.Row

Open in new window

                   
in Macro (as attached). Why?
Gold-Star-ACER-BKSI-20082018-d.xlsm
Avatar of Fabrice Lambert
Fabrice Lambert
Flag of France image

Your variable data type is Integer.
Integer data types are 16 bits and support values from -32768 to 32767.

Try with Long data type.
ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial