How to tell if a document is new ?

  • Thread starter OHM \( Terry Burns \)
  • Start date
O

OHM \( Terry Burns \)

In visual basic ? what method or property can I use to determine if a
document has ever beens saved ?

Cheers

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
 
C

Chuck Davis

-----Original Message-----
In visual basic ? what method or property can I use to determine if a
document has ever beens saved ?

Cheers

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
What does this have to do with MS Office Word?
 
O

OHM \( Terry Burns \)

A lot actually, I wanted to use Words Basic to determine this. However, Ive
since worked it out.

Thanks

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
 
A

Amedee Van Gasse

OHM ( Terry Burns ) shared this with us in
microsoft.public.word.newusers:
A lot actually, I wanted to use Words Basic to determine this.
However, Ive since worked it out.

Thanks

Share your solution with the world!
 
O

OHM \( Terry Burns \)

test the property against the date "01/01/1601" which is the default date

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
 
D

Doug Robbins - Word MVP

As long as you have started typing in the document,

MsgBox ActiveDocument.Saved

Will return "False"

For a completely new, virgin document, it will however shown True because as
far as Word is concerned, there is nothing do save.



--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Forms on Letters 1
Forms 1
Characters allow in the title 8
One Last Question ( I promise ) 2
Thanks 0
Speech Recognition Files Error 0
Remember Me ? 2
Forms on Letters 2

Top