A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How to tell if a document is new ?



 
 
Thread Tools Display Modes
  #1  
Old December 22nd, 2004, 07:12 PM
OHM \( Terry Burns \)
external usenet poster
 
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  
Old December 22nd, 2004, 07:22 PM
Chuck Davis
external usenet poster
 
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  
Old December 22nd, 2004, 07:29 PM
OHM \( Terry Burns \)
external usenet poster
 
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  
Old December 23rd, 2004, 04:36 PM
Amedee Van Gasse
external usenet poster
 
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  
Old December 23rd, 2004, 04:54 PM
OHM \( Terry Burns \)
external usenet poster
 
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  
Old December 27th, 2004, 04:01 AM
Doug Robbins - Word MVP
external usenet poster
 
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. ;-)


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Selecting the right document Beth Melton New Users 0 November 4th, 2004 06:39 PM
Document Merge Issues Barb Reinhardt General Discussion 1 October 13th, 2004 10:59 AM
Multiple Revisions - Track Changes - Sanity still puzzled General Discussion 3 September 29th, 2004 10:36 PM
Enabling menu commands after protecting a document tdtoolman General Discussion 3 July 6th, 2004 07:21 PM
Bookmarks are not retained during Mail Merge Latha Mailmerge 22 June 16th, 2004 08:53 PM


All times are GMT +1. The time now is 05:42 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.