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
-
25:59
Simply Bitcoin
1 day ago $1.13 earnedMichael Saylor Reveals $81T Bitcoin Plan to Cancel National Debt?!
22.1K5 -
1:33:51
Steve-O's Wild Ride! Podcast
1 day ago $1.44 earnedJohn C. Reilly's Surprising Connection To Jackass (And Beef With Weeman!)
38.1K6 -
DVR
StoneMountain64
4 hours agoBattlefield 6 News and Extraction Gaming
33.2K -
2:13:30
Side Scrollers Podcast
7 hours agoUK Introduces MANDATORY Digital ID + Dallas ICE Shooting BLAMED on Gaming + More | Side Scrollers
104K9 -
1:54:17
The Charlie Kirk Show
5 hours agoCharlie's Last Trip + What's Next + AMA | Erika Kirk, Mikey McCoy | 9.26.2025
294K247 -
1:02:53
The Quartering
5 hours agoMAGA Kid Kidnapped, Hasan Piker Meltdown, Vivek Fights For Alex Jones & More
138K55 -
32:49
Simply Bitcoin
1 day ago $2.06 earnedBitcoin Crucible w/ Alex Stanczyk | EP 1
41.7K1 -
1:57:37
Tucker Carlson
4 hours agoCharlie Sheen’s Craziest Hollywood Stories and Why He Refuses to Believe the Official Story of 9/11
68.7K64 -
1:33:12
Sean Unpaved
5 hours agoRyder Cup Tee-Off, CFB's Week 5 Madness, & the NFL's Win-or-Wilt Week 4
34.7K1 -
2:07:01
The Culture War with Tim Pool
7 hours agoWho Really Killed Charlie Kirk? Truth Behind Kirk Assassination | The Culture War with Tim Pool
250K240