Hi Shaun,
Not much to go on here, but I note that all the files you are accessing are on your C drive. Once you move the macro to the S drive (my assumption there for the shared drive), your macro will not be able to find the files. You need to have them on the same computer - preferably in the same folder.
Having said that, the code doesn't seem to be very efficient! Lots of scrolling. What are you trying to achieve? You seem to be trying to add together the value in several columns on row 56 of the same sheet.
This is quick and nasty, but assuming you want to put the consolidated data in H56 of the sheet with the macro, and get the value from the other sheet, this should do it a bit more efficiently.
NOT TESTED. You may have to tweek it a bit, bit have a go and see how it works.
Regards,
David
Please remember, your request is clearer if you attach a sample workbook.
- Click on Go Advanced and click on the Paper Clip.
When you reply please make it clear WHO you are responding to by mentioning their name.
If this has been of assistance, please advise. A little thanks goes a long way.
- Please click on the *Add Reputation button at the bottom of helpful responses.
Please mark your thread as SOLVED:
- Click Thread Tools above your first post, select "Mark your thread as Solved".
Bookmarks