Hi Everyone
I trying to edit the following code so I open a file dialog box point to the excel file I need then copy the range I have to the work book I am working in
Any help Please and Thanks
![]()
Please Login or Register to view this content.
Hi Everyone
I trying to edit the following code so I open a file dialog box point to the excel file I need then copy the range I have to the work book I am working in
Any help Please and Thanks
![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Last edited by JLGWhiz; 06-22-2019 at 04:27 PM.
Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
Just when I think I am smart, I learn something new!
this close but the file name maynot be master orha 2018 it may be called something else I need to be able to point to the fi;le then copy the B5 range
Then substitute the file name you want for 'ThisWorkbook'
Just make sure the workbook is open when you do it that way. Otherwise you might need to use both the path and file name to open the workbook in the same fashion as the one using the wb variable. You need to be clear about what you are looking for in the original post, to avoid these secondary conversations.![]()
Please Login or Register to view this content.
Last edited by JLGWhiz; 06-22-2019 at 10:50 PM.
From which sheet do you want to copy the data?
And which sheet do you want to paste into?
The way you have it now will just point to whichever sheet was the active sheet when saved previously and the sheet that happens to be active in the workbook you want to paste into.
Dave's Excel has the below code.
Should be easy to change to your requirements.
![]()
Please Login or Register to view this content.
Last edited by jolivanes; 06-22-2019 at 11:52 PM.
I would like to copy the info from the file get open filename to the active work sheet that I have open (Membership)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks