• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Uploading a text file (MACRO)

Hi all,

I recorded a macro that enables my team to upload a text file from the desktop to the cell A2 and below (all within the same column) however - the macro looks for the file address which is specific to my C drive location C:\Users\MyUsername\Desktop.Filename.txt

I want my colleagues to be able to use the same excel tool, is there a piece of code you could share with me that could fix this, maybe by creating an prompt for a file upload - and an extra validation to ensure the file is always .txt would be even better, maybe even a filename validation so that the file is always filename.txt and .txt format.

I'm debating whether or not to just use a shared drive but I would be interested to see the code nonetheless.

Many thanks.
__________________________________________________________________
Mod edit : post moved to appropriate forum …
 
Back
Top