Hello!
I need help with copying from selected WB.
I have an userform which opens before code is run. In this userform, user have to select workbook which will represent data for prior year and it looks like this:
Now i have the whole path of selected file (including filename.xlsx) stated in label5 and need to copy some data from that workbook later in macro.Please Login or Register to view this content.
In example, i need to copy range ("F12:F17") from worksheet ("BIL") in selected workbook to range("E12:E17") in worksheet ("BIL") in workbook generated with macro.
I tried everything i could think of, but nothing worked. As i understand, i should be able to use both PYFPath and Label5 for this purpose, but i dont know how.
I also googled for "vba copy from closed WB" but neither of results had an example with reference to workbook selected in userform.
Please help.
thanks!
Bookmarks