• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

SOLVED -Excel Macro - Importing data from text file

cjr22

Member
Ok, so I've got some data in a comma separated text file, and I need to import it into an Excel spreadsheet. Now, I can just about manage that manually 🙂 but we're going to be doing it over and over, so one of the guys in the lab said "just write a visual basic macro".

Now, I've never looked at VB before. I'm a reasonable programmer, just not in this language. All I want to do is have a button on the spreadsheet that causes this file to be read in and dumped to the spreadsheet. I could do it in C, or Tcl, but I'm new to the wonderful world of Excel and VB. Can anyone help me with the commands I need, or even better, point me in the direction of a "getting started" website for this kind of stuff? I've had no luck googling on the subject, I'm not afraid of doing the work myself (I'd actually prefer it that way!), but I do need a little help getting going.

Thanks guys!
 
Don't worry found this which I can adapt to my needs.

Just goes to show how wonderful AT is, just posting here helped me solve my problem, I didn't even need to wait for a response!
 
Back
Top