First time here? Check out the FAQ!
I've just upgraded to 3.5.0rc3 and find that one of my old VBA macros that used to work under version 3.4 has stopped working, it runs through all the code and does not throw any errors, but when stepping through it I can see that it does not execute the copy action on one line.
So when I later paste, blank cells are pasted instead of the data from C11:C16.
Does anyone know why this is?
example code below
Option VBASupport 1
Sub Copy_Paste()
Range("C11:C16").Select
Selection.Copy
Range("D1").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _ False, Transpose:=True
End Sub
I found a work around for this. I didn't realise but you can call a BASIC sub routine from within the VBA code, so I simply recorded a new macro within Libre using dispatch code to do the copy and called this at the point in my VBA code where the selection.copy failed.
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!
Asked: 2012-03-14 16:33:25 +0200
Seen: 365 times
Last updated: Mar 15 '12
why basic code ''ThisComponent.getCurrentSelection.formula" replaces comma with semicolon?
Filling/removing BG color of a cell range using VBA
How to Delete Conditional Formatting using Calc Macro?
How can I call a DLL function with an array as an argument?
Mail merge without .ODB file [closed]
Calc chart "same" value date X axis
Is there any LibreOffice equivalent to the Excel Data Analysis Toolpack?
Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.