Storing 1000 cells of formulas into a variable VBA

时间:2018-09-18 19:27:43

标签: excel-vba

Hi everyone is there a way of storing range 1000 cells of formulas into declared variable which is variant. Whilst I have been able store 1000 cells which are values into a variable. I am keen to know how you can do this with formulas and formating, large range of formulas using VBA.

1 个答案:

答案 0 :(得分:1)

You do it just as the same as with values for example

Dim v As Variant
v = Range("B1:B3").Formula

This wll give you the fornulas as string in an array.

At least that's how I understand your question.