1

I am trying to code a vba action that results in a Spilling formula.

ActiveSheet.Range("B1").Formula = "=NUMBERVALUE(" & topStore.Worksheet.Name & "!" & topStore.Address & ":" & botStore.Address & ")"

As a string variable, the value is

=NUMBERVALUE(Shipping!$A$2:$A$3592)

But when it lands in B1 it always has a @ in it and it results in a #VALUE! error.

=NUMBERVALUE(@Shipping!$A$2:$A$3592)

Is there a setting that I can disable or something I can add to the command that would prevent the @?

1 Answers1

1

replace:

.Formula

with:

.Formula2
Gary's Student
  • 95,722
  • 10
  • 59
  • 99