Results 1 to 3 of 3

Thread: Using Input in a Filename

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    15

    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

  2. #2
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: Using Input in a Filename

    Welcome to the Forums
    Have a Look at this
    Please mark you thread resolved using the Thread Tools as shown

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Using Input in a Filename

    Welcome to the forums.

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width