Dialog box to select a file to extract from (without open it)

igortorrealba

New Member
Joined
Aug 26, 2016
Messages
1
Dear all,

I am trying to write my first code, it will extract (copy) content from different sheets and cells from a file (source) and paste it into the next empty row of another existing file (the database)

The source has always the same exact structure, only different data, the previous idea is the simple part (no so simple for a complete novice), but to go beyond (once I have completed the basics), I would like to write a piece that will allow the user to:

Get a dialog box to select the file to extract from (without open it), if success, the a dialog box stating the id of the new record added to the database (the id is part of the simple code as an incremental number, no need to get deep on that)

So far I have found answers to open the file, but once I crack the first part of my code, I will not even want to see the file from which I extract the data (usually a heavy one).

Thanks a lot, I hope this is simple yet not too simple to make me feel dumb ;)
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top