Chip,
Thanks for your info, although I really hoped for a better solution, sound like I'm trying to achieve the impossible. Opening and closing files to retrieve that information is ugly.
cramd
When looking at a directory through windows explorer, we are given the choice of viewing the directory as: thumbnails, tiles, icons, list, and details. Using the "details" view, I can then customize my view by adding field information for "date created", "date accessed", "author", "subject"...
I am trying to access document properties from a network directory. Below is the code that I am testing, I can access the name, the modified date, but the results for subject is a "2" - not the actual document property subject.
Dim tbl As Word.Table = ThisDocument.Tables(1)
Dim fi As...
While trying to install Visual Studio.Net I cannot get passed step 2. I ran the prereq CD, followed by installation disk #1. I'm now prompted to insert SP2 disk so that Front Page extensions can be installed. On the SP2 diskette, the system searches for this file "_vti_inf.htm" - which is not...
With MSWORD I want the dialog box "File is locked for editing" to appear when another user has the document open. I find that it works for people with:
op system WINDOWS 2000 & OFFICE 2003 as well as OFFICE 2000.
I am a user with XPSP2, OFFICE 2003, and when I try to open a document that is...
Gerry,
Let me add, the database that I read from is DB2, not an Access database. The mailmerge works for some things that we do, but with this application, the mailmerge does not seem to be an option for me. I have learned quite a bit with this project using the docvariables, but you have now...
Gerry,
Your statement is correct: "a docvariable is set for customer information contained within a specific Section, the source of which is a database".
In the MSWORD paragraphs, I have inserted docvariables. Within my vbcode, I assign my database fields to the docvariables, update the fields...
Hi Tony,
Welcome back! The reason I'm not using mailmerge, it would be too easy--kidding. You helped me work out project 1, now I've moved on to project 2, a mailmerge would be great if I would be using the same document for all customers. The database that I read from also has a field that...
mintjulep:
Your comment: "You should get an error if you try to add a variable with the same name as one that already exists"
I did get this error, so I was deleting and recreating the variables after each read to my database.
Process:
1)Read the database that contains fields...
I have one large document I'll call MASTER, within MASTER I have 80 sections - each section is a page to a different customer. The problem I am having is I insert a docvariables for section1 or page1:
ActiveDocument.Variables.Add(Name:="amount", value:=custAmt)...
Andrew:
x = ActiveDocument.Variables.Count
If ActiveDocument.Variables.Count() > 0 Then
Do While (x <> 0)
ActiveDocument.Variables(x).Delete()
x = x - 1
Loop
End If
cramd
I am trying to delete document variables by an index and not by name, ex: ActiveDocument.Variables("books").Delete()
instead this: activedocument.variables(x).delete
I have not been able to find any examples, is it possible to delete by an index or does each variable need to be named in order...
Tony,
I GOT IT!! It's working.....I was updating in the wrong position!! And...only by a mistake did I catch this....
You have just opened the door for me with several projects!!
I can't THANK YOU enough for not giving up on me!!
I would buy you lunch if you were in Missouri!
Stars are on...
Tony,
I was out of the office yesterday so didn't get a chance to work on this. This morning, I've been testing and my variable information still does not carry through. I continue to get all the bookmark information, not just the bookmark name from my database. Couple of questions:
Within...
Tony,
I am connecting to a DB2 database. After making the changes as you suggested, I'm now getting the full reference.doc inserted into my letter1 document, not just the indicated bookmark. I understand what your doing, I'll continue my testing with this and hopefully will soon have it...
Tony,
"Library" is a field in my table that I read information from, it is not a field that I defined in my MSWORD document. So if I have this statement in my document {INCLUDETEXT "Z:\\reference.doc" {REF library}}, and "library" is a field in my table, but not defined as a field in my...
Tony,
I understand what your telling me, but when I try to produce my document, this is what I get:
Error! Bookmark not defined.
On my letter document where I have added this:
{INCLUDETEXT "Z:\\reference.doc" {REF library}}, should I be updating the field? I try, but I get this error:
one or...
Tony,
My testing is working now, but I need to take this one step further. In my letter document where this is defined {INCLUDETEXT "C:\\test\\reference.doc" books}, I need to change the bookmark "books" to a variable name, somewhat like: {INCLUDETEXT "C:\\test\\reference.doc" library}...
Tony,
Oh my "F9" - I've wasted way too much time trying to figure this one out on my on. THANK YOU!! Now, I'm not real clear on the "linking" option. I will be using this in VBA code and that's why I needed to figure this out - if I want the letter to update my reference text, then link would...
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.