Prevent overwrite file

Creating a macro - Writing a Script - Using the API

Prevent overwrite file

Postby bvdbos » Mon Jul 28, 2008 7:31 am

On Oooforum Villeroy gave a sample code to prevent overwriting documents by a macro. However, aren't the properties of StoreAsUrl meant for this:
Code: Select all   Expand viewCollapse view
   Dim FileProperties(0) As New
FileProperties(0).Name = "Overwrite"
FileProperties(0).Value = False

What's the difference, the latter doesn't seem to work?
User avatar
Posts: 11
Joined: Sun Jul 13, 2008 9:07 am
Location: Helmond, Netherlands

Re: Prevent overwrite file

Postby Villeroy » Mon Jul 28, 2008 10:28 am

I don't know what property "Overwrite" is meant for. Can you tell us what it does and why it does not seem to work? Whats wrong with my code, which justs test for existance and raises a MsgBox askin for what to do if file exists?
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04, no OpenOffice, LibreOffice 6.4
User avatar
Posts: 29090
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Return to Macros and UNO API

Who is online

Users browsing this forum: No registered users and 2 guests