One More Thing...
The objItem.PrintOut FileName:="C:\test.mdi" portion of the code is the problem.
objItem.PrintOut works by itself but produces a dialogue box, the FileName portion of it creates an error
"Named Argument Not Found"
Thanks Imarg
Hi everyone,
I am trying to build an outlook macro that will take a selected message and print it to a specific Microsoft Office Document Image Writer file on a users computer
I have gotten as far getting the default printer changed to image writer, and to printout.
The problem is that I...
Hi everyone... I am completely stuck on this and cannot find a solution that works anywhere.
I am looking for a way to open a locally saved html file, and get it to look for a particular string and then if it finds that string then do something else with it....
Does anyone know any code that...
I am doing this using a notepad editor --> as this is actually a vb script. And do not have access to the references... any other way of getting this to work?
Thanks Golom, this looks like it should work... but when I try to run it, I am told that the FileSystemObject class is not defined... how would I prevent this.
Thanks
Hi everyone... I am completely stuck on this and cannot find a solution that works anywhere.
I am looking for a way to open a locally saved html file, and get it to look for a particular string and then if it finds that string then do something else with it....
Does anyone know any code that...
Thanks Peter,
Your suggestion did not work directly in word, as word didn't know it had to open the file in internet explorer and still just opened it in reader.
What I did was create a vbs script that does do the trick using the code below.
Dim shell
Dim iepath
Dim location
Dim Page...
Thanks Gerry,
This code here is supposed to be able to do the trick
anobject.LinkExecute[DocGoTo"c:/imarg/document.pdf",5)]
This is supposed to work but when the VB code runs, it says that an object is required, and I can't figure out what kind of object its asking for.
Hi again,
The "#page=n" appendix would work if the pdf document I was trying to link to was on a internet/intranet server, but due to confidentiality reasons it is being kept on the local LAN, so that command can't work.
The document is extremely long, and only a few sections need to be linked...
Hi everyone,
I have been trying to come up with a way to create a link from word to a specific page inside a pdf document. I know that for a document thats on a web server you can just append "#page=n" to the end of the address, but I need to do this with locally stored documents. I know this...
First off let me preface that this was done long before I joined the department, I am just doing some update work.
But maybe calling it format isn't the right word. What it really applies to is Word options... ie. a specific way to write Author Name, Initials.
Default save directories, things...
Thanks folks... I think I may have a solution... Checking for the existance of
C:\Documents and Settings\USER\Application Data\Microsoft\Office
Since it appears that doesnt exist until after the first time the program is run.
Cheers
Tony is right in his explanation. First time does mean the first time a user ever logs onto a workstation.
The user name is just one of the things that is changed. We also change the user's default save folder, and several other settings. The biggest reason for us doing this is because there...
Here is the main part of the code
Set objSysInfo = CreateObject("ADSystemInfo")
strUser = objSysInfo.UserName
Set objUser = GetObject("LDAP://" & strUser)
Set objWord = CreateObject("Word.Application")
objWord.UserName = objUser.givenName & " " & objUser.SN
objWord.UserInitials =...
When the user logs in, the script activates office, inserts some default settings for the user (ie. Author name, sets a default save folder etc..), then closes word.
However if the user logs in for the first time, the script opens office, but can't proceed, because office is setting itself...
Hi everyone,
My department has a start up script that runs every time a user logs onto a computer that automatically sets various settings for Microsoft Office 2003 applications. The problem is that when a user logs onto a specific computer for the first time the script does not run properly...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.