vba - Excel Density Map -
i trying create density map in excel. map in seperate worksheet data stored. problem having right being able access data in separate worksheet 1 vba function running in. thought this:
dim row range ' loop through rows 4 -> 550 x = 4 550 set row = worksheet(1).range(cells(x, 1), cells(x, 24)) ' range of cells further processing next counter
the problem when run code test getting excel returns follow error "worksheet(1)":
compile error:
sub or function not defined
all data stored in worksheet #1 , density map being created in worksheet #6. how can go doing this
you should consider using this
set row = worksheets(1).cells(x,1).resize(1,24)
the range reference qualified worksheets(1) point range on worksheet. cells references unqualified , point range on activesheet, may not want.
Comments
Post a Comment