VBA to print and replace....

Closed
PM - 9 Oct 2009 à 04:52
sharpman Posts 1021 Registration date Saturday 23 May 2009 Status Contributor Last seen 20 October 2010 - 10 Oct 2009 à 10:27
Hello,

I use the below code to open a .lst file in notepad, what i need to know is how i can print this file using vba?

code:

RetVal = Shell("C:\WINDOWS\notepad.exe K:\Output\Data.lst")

This code opens the file in notepad, however how do i get it to print?

Also if anyone is able to tell me the code on how i can replace a letter on the new notepad file created and then print then that would be great!!

thanks in advance

PM
Related:

1 response

sharpman Posts 1021 Registration date Saturday 23 May 2009 Status Contributor Last seen 20 October 2010 183
10 Oct 2009 à 10:27
have a look here for some ideas on your problem
https://www.itprotoday.com/data-analytics-and-data-management