Lawrence Salvucci
asked on
Get data from closed workbook that is password protected
I need to get some data from this range in my closed workbook that is password protected:
M22:O29
How can I retrieve this data and paste special (values) into my active workbook into range A2:C9?
M22:O29
How can I retrieve this data and paste special (values) into my active workbook into range A2:C9?
ASKER
I also need to copy and paste special a specific range from this closed workbook and paste the values into my active worksheet.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Note that this does not use copy/paste - in VBA it's nearly always better just to assign the values from one range to another. Copy/paste can be useful if you need to take formats as well, but generally is an unnecessary overhead.
ASKER
Thanks Andrew! Much appreciated!
Workbooks.Open Filename:="Full Path Name", Password:="Apassword", _ WriteResPassword:="Apasswo