Posting formula with spilling result

Es123

New Member
Joined
Dec 9, 2022
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hello,
in VBA I'm trying to paste a formula which is using my DLL and is resulting 3 fields, hence spilling.

' Using .Formula doesn't work at all due to the '=' Runtime error 1004. Same happens with any formula like =Round(5;2), doesnt work either due to the '='
Worksheets("Fetch").Range("Q1").Formula = "=TS_GetData(C1;D1;I1;E1)"

' .FormulaLocal does work and the formula gets executed but spilling the result is done only in the first cell
' and after calling it the cell contains "=@TS_GetData(C1;D1;I1;E1)
Worksheets("Fetch").Range("Q1").FormulaLocal = "=TS_GetData(C1;D1;I1;E1)"

What do I miss here?
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi & welcome to MrExcel.
How about
VBA Code:
Worksheets("Fetch").Range("Q1").Formula2Local = "=TS_GetData(C1;D1;I1;E1)"
 
Upvote 0
Hi & welcome to MrExcel.
How about
VBA Code:
Worksheets("Fetch").Range("Q1").Formula2Local = "=TS_GetData(C1;D1;I1;E1)"
Thanks a lot, I've tried many things but not this.
Works as it should.
It looks like this is a Excel 365 thing (with Dynamic Array aware Excel)

Here is a thread regarding this:
Formula2Local
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,339
Messages
6,124,381
Members
449,155
Latest member
ravioli44

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top