Re: Problem using VBA to create sequentially numbered documents in Word
- From: "SLind via OfficeKB.com" <u15764@uwe>
- Date: Thu, 17 Nov 2005 00:33:43 GMT
Thanks for your help, but I'm new to VBA programming and lost looking at the
link you provided.
Let me ask if the following would be possible:
Have two Word documents. One would be a document that poeple would open and
edit, etc. The second document would have only one function... maintain an up-
to-date invoice number. A Macro would be created in the first document to
cross reference to the second document's invoice number.
Here's the problem I would run into... is it possible to increase the invoice
number (new invoice number = old invoice number +1) in the second document
without ever opening it. Could a macro in document 1 update document 2? Any
help with sample VBA code would be greatly appreciated.
thanks
Steve
Jonathan West wrote:
>Hi Steve
>
>I have had occasional problems of this kind with the PrivateProfileString
>property. There seems to be no rhyme or reason to the problems, and as a
>result, I no longer use it to read & write INI files. Instead, I use the
>code created by Karl Peterson that allows for a much wider range of
>operations on INI files. Take a look here
>
>http://vb.mvps.org/samples/project.asp?id=kpini
>
>> Hi,
>> I am using a certain Autonew VBA program to automatically generate a new
>[quoted text clipped - 29 lines]
>>
>> End Sub
--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.aspx/word-programming/200511/1
.
- Follow-Ups:
- References:
- Prev by Date: Re: Gunning Fog Index vs. Flesch Kincaid
- Next by Date: Re: Problem using VBA to create sequentially numbered documents in Word
- Previous by thread: Re: Problem using VBA to create sequentially numbered documents in Word
- Next by thread: Re: Problem using VBA to create sequentially numbered documents in Word
- Index(es):