|
-
Jan 18th, 2007, 10:30 PM
#1
Thread Starter
New Member
Excel, 4500 pictures and sort....
ok,
So I built a nice little macro in my excell sheet that when triggered takes a column of absolute addresses to 4500 pictures and makes thumbs, avoiding all that mess with storage in the sheet and such. This same sheet has values associated with each photo in columns next to them... Where the photo was taken, who took it, what it is, what date etc, and a few empty spots of data that all the photo takers want to sort and fill....
These other columns sort real nicly by catagories when the sheet has no pictures on it, via row 4. The catagories snap, carrying each rows catagories with them quickly...
Put the photos on the sheet and do a sort and it whigs out, freezes and crashes when it starts sorting. I can see the pictures scrolling by as it tries to go from 1253 to the next selected row at 2314 for example. and it seems to go on and on and on, sometimes crashing the sheet... The macro generates pictures faster than the sort can move them in most cases.
____________________
Now Ive thought to erase the photos before each sort, then re-generate them; but Im not sure if the folks Im working with can keep that in mind too.
I dont want the sheet to whig out and loose all the changes made to those empty spots if the workbook fails and crashes when someone is working with it...
SO-
my question is. How can I stop this action by clearing before a sort when the sort is already triggered.....
OR, perhaps better yet, how do I see just the cells that are visable, so a macro can be clicked to only draw those. For example, rows 2400 through 2450 are on the screen, but there are 4500 rows... what command will tell me what rows are actually visable, such that I can insert just those pictures into only those rows?
Thanks for any insights you may have....
-
Jan 19th, 2007, 07:30 AM
#2
Re: Excel, 4500 pictures and sort....
it sunds like the main problem is screen updating, try making the sheet visible = false while the sort is happening
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|