Premium Only Content
VBA to BROWSE & COPY Data from SELECTED File in Excel
26 September 2019 Excel VBA & Macros Tutorials
Get access to the full course here: https://www.xelplus.com/course/excel-vba-excel-macros/
Use this simple Excel VBA macro to allow the user to browse for the file they need to import or copy the data from. They will get Excel's open File Dialog Box and they can browse and select the workbook to copy the data from. We use VBA GetOpenFilename method to Open the workbook selected in the background, copy the data and then close the workbook. The user will not even realize the other workbook was opened in the background.
I will also show you how to avoid getting the message "method getopenfilename of '_application' failed". This is a common error when using the application.getopenfilename method and it can easily be avoided by declaring the correct variable type.
You can expand on this Excel macro to copy data from multiple ranges or multiple sheets or create dynamic ranges.
⯆ DOWNLOAD the workbook here: https://www.xelplus.com/excel-vba-getopenfilename
Check out the FULL VBA Playlist: https://www.youtube.com/playlist?list=PLmHVyfmcRKyzmbDy6QoBuUDrU5D-jD-Se
★ My Online Excel Courses ► https://www.xelplus.com/courses/
✉ Subscribe & get my TOP 10 Excel formulas e-book for free
https://www.xelplus.com/free-ebook/
EXCEL RESOURCES I Recommend: https://www.xelplus.com/resources/
Get Office 365: https://microsoft.msafflnk.net/15OEg
Microsoft Surface: https://microsoft.msafflnk.net/c/1327040/451518/7593
GEAR
Camera: https://amzn.to/2FLiFho
Screen recorder: http://techsmith.pxf.io/c/1252781/347799/5161
Microphone: https://amzn.to/2DVKstA
Lights: http://amzn.to/2eJKg1U
More resources on my Amazon page: https://www.amazon.com/shop/leilagharani
Note: This description contains affiliate links, which means at no additional cost to you, we will receive a small commission if you make a purchase using the links. This helps support the channel and allows us to continue to make videos like this. Thank you for your support!
#MsExcel #ExcelVBA #Excel #LeilaGharani
-
16:44
Russell Brand
3 hours agoAmerica’s Hidden Royalty
14.9K20 -
LIVE
StoneMountain64
4 hours agoBattlefield REDSEC leveling guns for attachments
214 watching -
LIVE
Wayne Allyn Root | WAR Zone
7 hours agoWatch LIVE: The War Zone Podcast with Wayne Allyn Root
124 watching -
33:39
LibertyRoundTable
3 hours agoWarhawk Down: Dick Cheney’s Legacy & the Rise of Citizen Journalism | LRT Radio 11/4/25”
12 -
2:05:29
The Quartering
4 hours agoEscape From New York, Harvard Bombers Caught, Trump DEFIES Court On SNAP, Bomb Threat On Plane!
153K88 -
16:30
Clintonjaws
19 hours ago $11.55 earned'The View's' Producer Stops Show & Forces Whoopie To Correct Lie
32.5K19 -
10:51
Scammer Payback
3 hours agoScammer's Meltdown after He's Been Hacked
3.72K3 -
LIVE
LFA TV
20 hours agoLIVE & BREAKING NEWS! | TUESDAY 11/4/25
1,224 watching -
LIVE
freecastle
6 hours agoTAKE UP YOUR CROSS- INTEGRITY of the upright GUIDES them, CROOKEDNESS of the treacherous DESTROYS!
120 watching -
2:04:16
Pop Culture Crisis
3 hours agoCoca-Cola's WAR ON CHRISTMAS, Movie Press Tour CRINGE, Gen Z HATES Gen Z | Ep, 949
28.5K4