A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
That seems to work now - thank you so much for your help!
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi.
I have a series of identical workbooks in a folder in the following location: C:\Users\hughesel\Desktop\Test
I want to create a macro which will open each of the files in turn and select all of the contents on the QPI sheet and paste special values the information (to remove the fomulas. The QPI sheet is password protected so that would need to be turned off too
I then want the file to be saved and closed before the macro moves on to the next file in the folder.
I have tried to peice together bits of code myself but with no success.
Is anyone able to help?
Many thanks.
Kind Regards.
Liz.
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
That seems to work now - thank you so much for your help!
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more
I am not sure if there is anything special about it.
It seems to open the file as when i have clicked debug i can see that the file that is shown when i hover over the strFile is open.
Would it make a difference that the workbook being open contains its own macros - albeit ones that I dont think need to be enabled in this instance?
OK, thanks. That would mean that there is a problem opening one of the workbooks.
When the macro is paused after clicking Debug, you can hover the mouse pointer over the word strFile in the code. You should see the filename in a popup box. Does that provide a clue - is there anything special about that file?
that is definitely the line highlighted in yelllow