ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Loading Data into an Array (https://www.excelbanter.com/excel-programming/428739-loading-data-into-array.html)

Quietman

Loading Data into an Array
 
I have 100 rows of information in an excel file bu there are about 200 or so
blank lines. does any one know the code that I can use to load the
information into an array less the blank lines the place them into a
different area of the worksheet

Thanks

--
Helping Is always a good thing

Patrick Molloy

Loading Data into an Array
 
suggestion 1
you could just delete the rows
for rn = 500 to 1 step -1
if cells(rn,1)="" then
rows(rn).Delete
end if
next

suggestion 2
copy data to a new sheet then delete the blank rows


"QuietMan" wrote in message
...
I have 100 rows of information in an excel file bu there are about 200 or
so
blank lines. does any one know the code that I can use to load the
information into an array less the blank lines the place them into a
different area of the worksheet

Thanks

--
Helping Is always a good thing




All times are GMT +1. The time now is 01:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com