ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Copy sheet1.range("A3:G5000") from an open file (https://www.excelbanter.com/excel-programming/400075-copy-sheet1-range-a3-g5000-open-file.html)

Denys[_3_]

Copy sheet1.range("A3:G5000") from an open file
 
Good morning everyone,

Is there a way I can copy the above mentioned range from a file
already opened by a user and therefore marked as read-only to another
file named Recap for example?

Thank you for your time

Denys


Tim Williams

Copy sheet1.range("A3:G5000") from an open file
 
ActiveWorkbook.Sheets("Sheet1").Range("A3:G5000"). Copy _
Workbooks("Recap.xls").Worksheets("Sheet1").Range( "A1")

Assuming the file opened by the user is the active workbook.

Tim

"Denys" wrote in message
ups.com...
Good morning everyone,

Is there a way I can copy the above mentioned range from a file
already opened by a user and therefore marked as read-only to another
file named Recap for example?

Thank you for your time

Denys





All times are GMT +1. The time now is 12:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com