Hello to all!
I have such problem. I write a program on excel and VBA. There is a blank cell on sheet 1. On sheet 2 I keep formula, witch I copy to the cell on sheet 1, when user clicks his button.
But I don?t want formula on sheet 2 be calculating. Because of this I put 1 space symbol before sign equal(? =?). My formula is looking as ? =If(A1<>0;1;2)?.You see? There is a space symvol before equal letter. And this formula doesn?t calculate on sheet 2. When user click button I want to execute my macros. My code is:
??????????????????
Sheets("01").Cells(4, 4).Value = Trim(Sheets("02").Cells(9, 5).Value)
Where ?Sheets("02").Cells(9, 5)? is a cell witch contain function with space. And this macros must delete this space, copy function to sheet 01 and calculate it there. But It doesn?t work. Excel Shows error: ?1004 Application defined or object defined error?. But Why? If I do this thing with keyboard: copy this function as text and then deleting space with keyboard ? all works! But If I do such thing with macros It doesn?t work!