Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Creating a notepad silently

Creating a notepad silently

Creating a notepad silently


Is it possible to create a notepad without being asked to create one case the file does not exist?

The below function that I've been using constantly asks the user if he/she wants to create a new notepad
in the case of non existence.

Shell "C:\WINDOWS\Notepad.exe Myresults", vbNormalFocus

The idea that I have is to create a notepad, paste some reslts from my main form (via: SendKeys "^v") and then save the file without
asking the user anything.

If it's of any help, I'm wotking with Access2007 / Win10.

Thanks guys,

RE: Creating a notepad silently

If you just want to create a text file (Notepad is just one way to create/display text files anyway) you can just do:


Open "C:\Temp\MyTextFile.txt" For Output As #1
Print #1, "Some text"
Close #1 

And your user will never see anything. No Notepad required.

Would that work for you?

Have fun.

---- Andy

A bus station is where a bus stops. A train station is where a train stops. On my desk, I have a work station.

RE: Creating a notepad silently

Excellet Andy, thanks...Got it working a treat.
There goes a star for that one mate..


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close