473,320 Members | 2,193 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Launching word from VB

I have an app that launches MSWord for a report sequence. Some installs have
word open and minimzed on the task bar. Some installs have word maximized on
screen. Is there a way I can force it (my app) to open word maximized.

Thanks
Grant
Jul 17 '05 #1
1 5894
Dim wdApp As Word.Application

Set wdApp=New Word.Application
wdApp.Visible=True
wdApp.WindowState=wdWindowStateMaximize

OR

Dim wdApp As Object
Set wdApp=CreateObject("Word.Application") 'Or use GetObject() for
existing Word instatnce
wdApp.Visible=True
wdApp.WindowState=1

"James Grant" <ja******@sympatico.ca> wrote in message
news:Q5********************@news20.bellglobal.com. ..
I have an app that launches MSWord for a report sequence. Some installs have word open and minimzed on the task bar. Some installs have word maximized on screen. Is there a way I can force it (my app) to open word maximized.

Thanks
Grant

Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jason Steeves | last post by:
Can someone post the needed code that will allow me to launch word on the client PC and have the filename specified as a variable. I have been working on this and can't find any clear documentation...
1
by: David | last post by:
Hello. I've written a page for an intranet that gives the user the option of launching a Word or PowerPoint document. The code I used to force the hyperlink to launch the application rather...
4
by: Danny | last post by:
Hello again I have two quesitons about launching IE from code in access. Is there a way to do the shell command to launch IE without having to know the exact path. shell seems to be picky and...
3
by: Susan Bricker | last post by:
Greetings. I have a command button that, when clicked, opens up an instance of MS/Word and opens a document (the filename is the input argument to the function that is kicked off"). This works...
3
by: Waldy | last post by:
Hi there, I have followed the steps in the MS article 288367 to enable Word to run from a web page. I have done this several times and it has worked OK. However, at a customer site I am getting...
0
by: Sheila | last post by:
I have set up a Word mail merge document of the type Directory which allows me to display all of the records on a single page rather than putting each record on a separate page. It uses a...
5
by: Bob | last post by:
I'm getting error 8007007e when executing the following code. Dim word As New Microsoft.Office.Interop.Word.Application Dim doc As Microsoft.Office.Interop.Word.Document doc =...
1
by: =?Utf-8?B?TWFyayBIb2xsYW5kZXI=?= | last post by:
Hi All, I am trying to launch an application based on the extension just like windows explorer does, specifically with regards to templates. For example, 1. When you double click on a word...
0
by: SteelNetNob | last post by:
I am having a problem where I have a COM application that can be run stand-alone and programatically via COM interop. If an instance of the COM application is being run when my .NET application that...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.