[Solved] Calc: copy data from a spreadsheet to another

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
MATT.B
Posts: 165
Joined: Tue Nov 18, 2014 2:16 am

Re: [Solved] Calc: copy data from a spreadsheet to another

Post by MATT.B »

Dim Doc
Dim url as string
dim myfilename as string
dim mypath as string
mypath = "c:\foldername\"
myfilename = "filename"
url = ConvertToUrl(MyPath & MyFilename & ".ods") ,OR url = ConvertToUrl("c:\PATH\FILENAME.ODS")
Doc = starDeskTop.loadComponentFromUrl (Url, "_blank", 0, Array())
OpenOffice 4.1.1 ON WINDOWS 7 64
Post Reply