Ask Your Question
0

Macro takes 10 seconds to run

asked 2012-09-11 19:48:44 +0200

G2007 gravatar image G2007
1

updated 2013-01-31 03:34:44 +0200

qubit gravatar image qubit flag of United States
5721 3 48 41

Below is copy of macro. The 'invoice' macro takes 10 seconds to complete. The 'Save As' macro is done within a second or two. This is converted from excel sheet. If I record a macro in LibO to create the same invoice, it still takes 10 seconds to complete so I don't think language is problem. Any thoughts. Thanks

Rem # Attribute VBA_ModuleType=VBAModule
Option VBASupport 1
Sub Invoice()
Rem #
Rem # Invoice Macro
Rem #

Rem #
  Sheets("Sheet2").Select
  Range("A1").Select
  Selection.Copy
  Sheets("Sheet1").Select
  Range("A1").Select
  ActiveSheet.Paste
  Sheets("Sheet2").Select
  Rows("1:1").Select
  Application.CutCopyMode = False
  Selection.Delete Shift:=xlUp
  Range("A1:A2").Select
  Selection.AutoFill Destination:=Range("A1:A3"), Type:=xlFillDefault
  Range("A1:A3").Select
  Sheets("Sheet1").Select
  Range("A1").Select
End Sub

Sub SaveAs()
  ThisFile = Range("A1").Value
  ActiveWorkbook.SaveAs Filename:=ThisFile
End Sub
delete close flag offensive retag edit

Comments

Please open a bug report for it with whiteboard status perf.

moggi ( 2012-09-15 12:50:07 +0200 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2013-02-24 21:23:34 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

updated 2013-02-24 21:23:34 +0200

qubit gravatar image qubit flag of United States
5721 3 48 41

(comment -> Answer for Resolution)

@moggi writes:

Please open a bug report for it with whiteboard status perf.

link delete flag offensive edit

Login/Signup to Answer

Donate

LibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!

Question tools

Follow
1 follower

subscribe to rss feed

Stats

Asked: 2012-09-11 19:48:44 +0200

Seen: 147 times

Last updated: Feb 24