Hi,
I'm looking for help on how to accomplish these steps:
1) Open File 1 and File 2 using MSPaint.
2) Copy the File 1 image, and paste in to File 2.
3) Close File 1 without saving.
4) Activate the File 2 window.
I have step 1 covered, but am looking for help with steps 2-4.
Thanks in advance!
EDIT: Here is the code I have so far...
I'm looking for help on how to accomplish these steps:
1) Open File 1 and File 2 using MSPaint.
2) Copy the File 1 image, and paste in to File 2.
3) Close File 1 without saving.
4) Activate the File 2 window.
I have step 1 covered, but am looking for help with steps 2-4.
Thanks in advance!
EDIT: Here is the code I have so far...
Code:
'OPEN FILE 1
File1 = Range("PATH_INVOICE_SUBFOLDER").Value & "\" & Range("INVOICE_SNIP_FILE_NAME").Value & ".jpg"
Shell Chr(34) & "mspaint.exe" & Chr(34) & " " & Chr(34) & File1 & Chr(34), 1
'OPEN FILE 2
File2 = Range("PATH_INVOICE_SUBFOLDER").Value & "\" & Range("INVOICE_FILE_NAME").Value & ".jpg"
Shell Chr(34) & "mspaint.exe" & Chr(34) & " " & Chr(34) & File2 & Chr(34), 1
'COPY FILE 1 AND PASTE IN FILE 2
'CLOSE FILE 1 WITHOUT SAVING
'ACTIVATE FILE 2 WINDOW