Here is my defining my variables:
Dim oCurrentSelection As Variant
Dim sString As String
dim args1(0) as new com.sun.star.beans.PropertyValue
dim args2(0) as new com.sun.star.beans.PropertyValue
Dim Source as single
Dim Amount as single
dim Donor as String
Dim RDate as double
Dim Move as Integer
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
I then put values or text to the variables and move to sheet2 to a specified location.
I use a Print command to verify the values are loaded into the variables.
I then use the GoDown command by the value of the variable Move.
Thus far, everything works.
The next line is: oCurrentSelection.setValue(Source)
This does not work. The movement works, just the previous line does not.
I get BASIC runtime error Object variable not set.
I’ve tried using an “ActiveCell = Source” to no avail.
Any thoughts on replacing that line with something that would place the contents of the variables in the current cells?
Thank you very much in advance for your help.