On 2002-04-22 16:09, Mr_Semper wrote:
I'm using a form to get input txt file, I then need to pass the filename to my spreadsheet so I may inport the file.
Any ideas ?? Thanks,
Pass it to where in the spreadsheet? Do you want to copy the name into a cell? Or what?
If you want to import the text file with VBA, that can also be done. Please be a little more specific and I or someone else will be more likely to help.
On 2002-04-22 16:09, Mr_Semper wrote:
I'm using a form to get input txt file, I then need to pass the filename to my spreadsheet so I may inport the file.
Any ideas ?? Thanks,
Will prompt you for the file to open and store it in the variable MyFile. You can then write the MyFile string to the worksheet (???) or use Workbooks.OpenText to open the file as you'd like.
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.