writeback using VBA
Posted: Mon Aug 12, 2013 1:38 pm
Hello,
I want to alter a cell in a slice in excel, using TM1 Perspectives. I use the formula =DBR(... to retreive the data
It works fine when i do it manually, but when i use a macro in excel, it deletes the formula and just lets the text. The formula which helps me get the data from TM1 disappears and I am left with a simple cell filled with the text i wanted to insert.
I recorded a macro when I do this manually:
Sub Macro1()
Range("D4").Select
ActiveCell.FormulaR1C1 = "1.3"
Range("D5").Select
End Sub
When I run this macro(exactly the one I recorded) it does not write back into the database. The formula which helps me get the data from TM1 disappears and I am left with a simple cell filled with the text i wanted to insert. Any clues as whis is this happening or how could i solve this?
I want to alter a cell in a slice in excel, using TM1 Perspectives. I use the formula =DBR(... to retreive the data
It works fine when i do it manually, but when i use a macro in excel, it deletes the formula and just lets the text. The formula which helps me get the data from TM1 disappears and I am left with a simple cell filled with the text i wanted to insert.
I recorded a macro when I do this manually:
Sub Macro1()
Range("D4").Select
ActiveCell.FormulaR1C1 = "1.3"
Range("D5").Select
End Sub
When I run this macro(exactly the one I recorded) it does not write back into the database. The formula which helps me get the data from TM1 disappears and I am left with a simple cell filled with the text i wanted to insert. Any clues as whis is this happening or how could i solve this?