Issue 54624 - Record File - Save As in a macro, but it won't run
Summary: Record File - Save As in a macro, but it won't run
Status: CLOSED DUPLICATE of issue 54702
Alias: None
Product: Writer
Classification: Application
Component: programming (show other issues)
Version: OOO 2.0 Beta2
Hardware: PC All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: joerg.skottke
QA Contact: issues@sw
URL:
Keywords: oooqa, regression
Depends on:
Blocks:
 
Reported: 2005-09-15 00:54 UTC by mark_irving
Modified: 2005-09-20 15:12 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description mark_irving 2005-09-15 00:54:57 UTC
Create a new blank text document.
Use Tools - Macros - Record Macro to start recording a macro.
Use File - Save As - choose a name, select Microsoft Word 97 format, click Save.
Finish recording the macro, and save it - I used the suggested default location.
Now use Tools - Macros - Run Macro... to try to run this new macro.

I get a pop-up error message which says, "Inadmissible value or data type. Index
out of defined range." It seems to be right: the body of my new macro goes like
this:

dim args1(2) as new com.sun.star.beans.PropertyValue
args1(0).Name = "URL"
args1(0).Value =
"file:///C:/Documents%20and%20Settings/Mark/My%20Documents/Cycling%20Campaign/Newsletter/NL62/Copy/test.doc"
args1(1).Name = "FilterName"
args1(1).Value = "MS Word 97"
args1(4).Name = "SelectionOnly"
args1(4).Value = true

...and I can see that args1(4) is a nonsense.

I am an absolute beginner to OOo macros, and this was my first ever attempt to
create one. I was hoping to learn about macros, rather than about OOo issue
reporting!
Comment 1 h.ilter 2005-09-19 15:05:49 UTC
HI->JSK: Please take a look.
Comment 2 flibby05 2005-09-20 10:42:38 UTC
confirm with m129 linux

this issue could have the same root as issue 54702
Comment 3 flibby05 2005-09-20 15:12:17 UTC
closing as double

*** This issue has been marked as a duplicate of 54702 ***
Comment 4 flibby05 2005-09-20 15:12:56 UTC
mark, thanks for reporting this!

closing