Using Input in a Filename
I'm creating a time stamp program with 20 buttons and a start and stop button. I use the "open "?.txt" for ? as #?" statment to place the time into a txt file. My problem is that I'm not quite sure how to use input in a filename. Is it even possible? Do I need to create a form with an input box? Can i just use the InputBox fuunction?
THX
Re: Using Input in a Filename
Welcome to the Forums :)
Have a Look at this
Re: Using Input in a Filename
Welcome to the forums. :wave:
I've always found the Input box to be a little annoying. I perfer a textbox, so I'll use that as an example:
Code:
Open "c:\" & Text1.Text & ".txt" For Append As #1
'do stuff
Close #1
Now, just type something into the textbox and a file will be created with that name.
This is just a quick example. Modify to suit your individual needs.