Paste Formula as Value (Using Exacta Server)

Bart196

New Member
Joined
Dec 11, 2017
Messages
8
Hi Guys,

I'm new to VBA. I'm working on my first macro. I want to paste a formula (using the Exacta Server - Company Server) as a value (instead of a formula)... The caveat is excel doesn't calculate the formula UNTIL the macro ends. Is there a way to FORCE excel to calculate the formula while VBA is running?


ActiveCell.FormulaR1C1 = "=RTD(""exacta.server"",, ""NBBO_EQUITY"", RC9, ""AskPrice"", RC3, RC2)"


The formula (shown above) pastes as a formula. It shows the results as "N/A". After the macro finishes, excel will calculate the formula (using Exacta Server - Company server). Traditionally I would write the next line of code to paste as special value... but because the calculation ISN'T complete... I can't do this.

Thoughts?
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Not positive this will work but is an idea.

Code:
'Calculate and pause for 10 seconds
Sheets(1).Calculate
Application.Wait (Now() + TimeSerial(0, 0, 10))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,560
Messages
6,125,527
Members
449,236
Latest member
Afua

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