Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21340

Creating a Command Button to open a Javascript file.

$
0
0
Hello,

New to all of this so Sorry. I created a simple 2 button form. Each button was linked to a Javascript.
I was able to get the buttons to open the program needed (Adobe Illustrator), however when it comes to opening the Javascript, it just sits and spins. Any asistance would be very much appreciated.
Here is the Command Button Code I am currently using:

Private Sub Command1_Click()
Shell "C:\Program Files (x86)\Adobe\Adobe Illustrator CS4\Support Files\Contents\Windows\Illustrator.exe C:\Program Files (x86)\Adobe\Adobe Illustrator CS4\Presets\en_US\Scripts\Save PP.jsx", vbMaximizedFocus
' open a jsx document

End Sub

Private Sub Command2_Click()
Shell "C:\Program Files (x86)\Adobe\Adobe Illustrator CS4\Support Files\Contents\Windows\Illustrator.exe C:\Program Files (x86)\Adobe\Adobe Illustrator CS4\Presets\en_US\Scripts\Save PP_britePix_LoRes.jsx", vbMaximizedFocus
' open a jsx document

End Sub

Thank you in Advance!

Viewing all articles
Browse latest Browse all 21340

Trending Articles