Importing Files

Ryujin

New Member
Joined
Apr 17, 2017
Messages
12
Good Morning Friends ,

I need help to get a fuction to import Excel Files with VBA ,
I need to import the File it is entered in a Worksheet with the Name "Info" .

For Help you I will send the Excel that im working and the Excel that I want to import
clear.png


Best Regards and ty
:)
 
I don't know what to say - it's working here perfectly.

When the program stops with an error, press Debug and open an Immediate window (Ctrl-G), then type:-

?ThisWorkBook.Name
?wbImport.Name
?wsImport.Name


What do you get?

Is there anyone else reading this who is able to test this?
 
Upvote 0

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
One more suggestion: place that code in a general code module, not a sheet code module. Maybe when the new sheet is activated, the code is losing track of where it is.
 
Upvote 0
Appears That!

?ThisWorkBook.Name
ProgramaDavid.xlsm
?wbImport.Name
Transporte.xlsm
?wsImport.Name
Sheet1

Friend Were i can send u the files to you Check it?
 
Upvote 0
Macropod, unfortunately I don't have a login for any of those other (inferior) boards. If you wish to lock this thread, please feel free to do so.
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,215
Members
453,024
Latest member
Wingit77

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