Need VBA Code to upload a file

Shweta

Well-known Member
Joined
Jun 5, 2011
Messages
514
Hi All,

I have created a userform to upload the data from the notepad into sheet1 of my workbook.

I want when I press the command button named as "upload", all the data from the opened notepad get uploaded into my worksheet.

Can someone please help me out with a VBA Code on this?

Thanks,
Shweta
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Thanks paulsom for the quick response.

I am working on a payroll project in VBA.I have to upload the Attendence data that is in notepad into my file on daily basis.

I can just copy the data from notepad and paste it into my worksheet. But I want to do it in a impressive way.

There should a command button on my worksheet. When I click on that command button, a userform should be open. On the userform there should a option to upload the data. When I click on that it should ask for the path.
 
Upvote 0

Forum statistics

Threads
1,224,550
Messages
6,179,463
Members
452,915
Latest member
hannnahheileen

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