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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
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,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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