I'm using Excel 2003 version.
If I change a formula with VBA such as:
Range("A1").Formula = "=Sheet2!B:B"
sometimes the formula calculates and shows the correct value from cell B1 of Sheet2. However, sometimes it does not. Instead, what shows is still "=Sheet2!B:B" in cell A1 in Sheet1, when it should be the value of cell B1 in Sheet2. Plus, even if I change the format of cell A1 to "General", every time I assign a formula to it via VBA, the format automatically becomes "Text" again.
None of recalculation shortcut keys like F9 or Shift-F9 or CTRL-ALT-SHIFT-F9 work.
Has anyone experienced this problem before? And has anyone found the solution?
"=Sheet2!B:B"
? You mean"=Sheet2!B1"
? – Siddharth Rout