iainmartin100
New Member
- Joined
- Mar 9, 2011
- Messages
- 43
Hi,
I have searched and seached the forum but cant find the answer to this most basic question.
I have a line of code which puts a formula into cell A1.
All I want to do is have the code do the formula and the result only show in cell A1.
Here's an example of the code:
Range("A1").Formula = "='C:\[Book2.xls]Sheet1'!$B$4"
If the result was 5 then I just want to see 5 in the cell rather than the forumla behind the result also (vaule only).
The reason is to reduce the size of a large excel document with hudreds of formula all doing simular things.
Many thanks
I have searched and seached the forum but cant find the answer to this most basic question.
I have a line of code which puts a formula into cell A1.
All I want to do is have the code do the formula and the result only show in cell A1.
Here's an example of the code:
Range("A1").Formula = "='C:\[Book2.xls]Sheet1'!$B$4"
If the result was 5 then I just want to see 5 in the cell rather than the forumla behind the result also (vaule only).
The reason is to reduce the size of a large excel document with hudreds of formula all doing simular things.
Many thanks