Forum Discussion

g_keramidas's avatar
g_keramidas
Brass Contributor
Sep 27, 2022
Solved

using vba to enter a unique function formula

i can enter a simple formula in a cell and it works fine =unique(items[item])   if i use vba to enter the formula, it does not spill and only A1 gets filled range("A1").Formula = "=unique(items[i...
  • HansVogelaar's avatar
    Sep 27, 2022

    g_keramidas 

    The Formula property cannot handle dynamic array formulas. Use Formula2 instead:

     

    Range("A1").Formula2 = "=unique(items[item])"

Resources