ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Copy and paste ranges from a close book using Validation (https://www.excelbanter.com/excel-programming/302415-copy-paste-ranges-close-book-using-validation.html)

stakar[_19_]

Copy and paste ranges from a close book using Validation
 
Hi !!

I 've got 2 excel files.
In the 1st file, called "Hunter.xls" , I have created a validation lis
with the follow items
"One"
"Two"
"Three"
under the cell H3

Now, when i choose an item e.g the "One" i want to trigger a macro tha
doing the following :

1. To be connected to a closed workbook named "Symm.xls" which is i
the same directory as "Hunter.xls"
2. going to the sheet("Age2")
3. copying the range(C4:C1500) as values
and then at last to
4.paste them to the file "Hunter.xls" under the cell H3

If i 'll choose the item "Three" it will trigger the same macro a
above but with another range to copy from the workbook "Symm.xls"

So its goes on till the end of the choices of the validation list

Thanks in advance
Stathi

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 07:19 PM.

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