Reply
 
Thread Tools Display Modes
  #1   Report Post  
OHM \( Terry Burns \)
 
Posts: n/a
Default How to tell if a document is new ?

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))
--


  #2   Report Post  
Chuck Davis
 
Posts: n/a
Default


-----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?
  #3   Report Post  
OHM \( Terry Burns \)
 
Posts: n/a
Default

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))
--
"Chuck Davis" wrote in message
...

-----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?



  #4   Report Post  
Amedee Van Gasse
 
Posts: n/a
Default

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!

--
Amedee Van Gasse using XanaNews 1.16.5.2
If it has an "X" in the name, it must be Linux?
Please don't thank me in advance. Thank me afterwards if it works or
hit me in the face if it doesn't. ;-)
  #5   Report Post  
OHM \( Terry Burns \)
 
Posts: n/a
Default

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))
--
"Amedee Van Gasse" wrote in message
...
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!

--
Amedee Van Gasse using XanaNews 1.16.5.2
If it has an "X" in the name, it must be Linux?
Please don't thank me in advance. Thank me afterwards if it works or
hit me in the face if it doesn't. ;-)





  #6   Report Post  
Doug Robbins - Word MVP
 
Posts: n/a
Default

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
"Amedee Van Gasse" wrote in message
...
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!

--
Amedee Van Gasse using XanaNews 1.16.5.2
If it has an "X" in the name, it must be Linux?
Please don't thank me in advance. Thank me afterwards if it works or
hit me in the face if it doesn't. ;-)


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening a document in a protected form CheeryNan Microsoft Word Help 5 August 1st 22 07:34 AM
Unlock portion of document Pinky Microsoft Word Help 4 October 17th 06 09:43 PM
Can you save individual document pages as seperate word files? John Calligy Mailmerge 2 April 12th 05 09:14 AM
Word 2000 - Document 1 and Document 2 always open on startup VM Microsoft Word Help 2 January 5th 05 12:54 AM
Document object in protected form Bruce Tables 2 December 6th 04 08:09 PM


All times are GMT +1. The time now is 01:00 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"