DDE on userform please

slimimi

Well-known Member
Joined
May 27, 2008
Messages
532
Hello,.

I got these codes :

=MT4|BID!EURUSDm
=MT4|ASK!EURUSDm

which i would use on a Sheet to get real time price data in a cell.

I want to create a sort of floating userform for my spreadsheet which constantly shows these 2 prices changing but i dont know how to incorporate this formula in VB? Please can someone help?

Also - if i use 2 listboxes on the form to house these 2 bits of data - i would use the following under Userform Initialize

with listbox1
additem (etc).value ***i think***

However - what if i wanted to fill a textbox instead? What would the code be? I tried changing listbox1 to textbox1 but this didn't seem to work.

Thanks in advance.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Forum statistics

Threads
1,214,918
Messages
6,122,255
Members
449,075
Latest member
staticfluids

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