Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
KLC KLC is offline
external usenet poster
 
Posts: 1
Default WindowStyle not working in shell command

Help!!

I am trying to open Word 2000 and maximize it
(vbMaximizedFocus) but it keeps giving me a compiler error
expecting =. I have tried all combinations of constants
or values and no luck. Is there a patch out there or
something? Looks like I am running VB6 for excel 2000.
Any help would be appreciated.

KLC
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default WindowStyle not working in shell command

KLC,

What code are you using? The following code works fine for me. Be sure to
change the folder name to the appropriate folder.


Shell "C:\Program Files\Microsoft Office2000\Office\WinWord.exe",
vbMaximizedFocus



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"KLC" wrote in message
...
Help!!

I am trying to open Word 2000 and maximize it
(vbMaximizedFocus) but it keeps giving me a compiler error
expecting =. I have tried all combinations of constants
or values and no luck. Is there a patch out there or
something? Looks like I am running VB6 for excel 2000.
Any help would be appreciated.

KLC



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Application Process-Shell Command GarethG[_10_] Excel Programming 2 October 29th 03 01:35 PM
Parsing Shell Command with Parenthesis GarethG[_9_] Excel Programming 1 October 24th 03 05:53 PM
SHELL command Robin Clay[_3_] Excel Programming 3 October 17th 03 02:50 PM
How can you wait for the SHELL command to terminate ? Dave Peterson[_3_] Excel Programming 1 October 1st 03 09:10 AM
Copying a file with VBA (or with a SHELL command) Franck V. Excel Programming 1 September 15th 03 07:46 PM


All times are GMT +1. The time now is 01:39 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"