Issue 39896 - macro fails to record proper sequence
Summary: macro fails to record proper sequence
Status: CLOSED DUPLICATE of issue 20046
Alias: None
Product: Calc
Classification: Application
Component: programming (show other issues)
Version: OOo 1.1.4
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: joerg.skottke
QA Contact: issues@sc
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-04 16:20 UTC by ktom
Modified: 2013-08-07 15:12 UTC (History)
1 user (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 ktom 2005-01-04 16:20:04 UTC
when using macro record, the record fails.

i wish to insert sheets with this macro.  turning on macro record and begin the
sheet insertion, i select from file and click the link button.  i finish the
insertion, end record and name the macro.

i try to run the macro and it does nothing.  i edit the macro and it contains no
actual functioning code.  basically the shell of the subroutine.

sub InsertTimeStandards
rem ----------------------------------------------------------------------
rem define variables
dim document   as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

rem ----------------------------------------------------------------------
rem dispatcher.executeDispatch(document, ".uno:Insert", "", 0, Array())

rem ----------------------------------------------------------------------
rem dispatcher.executeDispatch(document, ".uno:Insert", "", 0, Array())


end sub

using 1.1.4 version
Comment 1 frank 2005-01-05 11:41:53 UTC
Hi Jörg,

please have a look at this one.

Frank
Comment 2 joerg.skottke 2005-01-14 10:42:48 UTC
Hi ktom,

this will not be fixed for OOo 1.1.x anymore. According to our PCD i set this
task to office later and duplicate to the macro recorder meta-bug (issue #20046)
which covers any non functioning code created with the macro recorder.

You have to use the API i'm afraid.

*** This issue has been marked as a duplicate of 20046 ***
Comment 3 joerg.skottke 2005-01-14 10:43:11 UTC
close