View Single Post
 
Old 10-06-2020, 09:54 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,977
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

The overflow is happening because Integer's are not large enough for the total rows on a sheet. Use a larger number type instead. Also the Row was a mistake, that q variable can be a Long too as the line where it is populated returns a number.

Dim i As Long, j As Long, p As Long, q As Long
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote