logo
  • Home
  • Discussions
  • Files
  • Register
  • Login
Welcome Guest! To enable all features please Login or Register.
  • Forum
  • Active Topics
  • Search
  • Help
  • Login
  • Register
  Search Search

Notification

Icon
Error

OK


Discussions  »  Product and Service Development  »  MetaStock  »  Help Needed: DDE Link to Excel with Macro
Help Needed: DDE Link to Excel with Macro - Help Needed: DDE Link to Excel with Macro
Options
  • Email this topic Email this topic
  • Watch this topic Watch this topic
  • Print this topic Print this topic
  • » Normal
  • Threaded
Go to last post Go to first unread
Previous Topic Next Topic
Spaceant  
#1 Posted : Tuesday, February 27, 2007 6:46:13 PM(UTC)
Spaceant

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 8/16/2005(UTC)
Posts: 182

I am using MS 9 Pro eSignal, and I have developed a macro (I think it shouldbe a macro!?) to just key-in the stock number in A1 and display the following:
Last; Change; Bid; Ask; VidSize; AskSize; TotalVol; OpenInterest in cell
B1; C1;D1;E1;F1;G1;H1;I1 respectively

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$A$1" And [A1] <> "" Then
[B1] = "=eqddesrv|" & [A1] & "!last"
[C1] = "=eqddesrv|" & [A1] & "!Change"
[D1] = "=eqddesrv|" & [A1] & "!bid"
[E1] = "=eqddesrv|" & [A1] & "!ask"
[F1] = "=eqddesrv|" & [A1] & "!bidsize"
[G1] = "=eqddesrv|" & [A1] & "!asksize"
[H1] = "=eqddesrv|" & [A1] & "!Totalvol"
[I1] = "=eqddesrv|" & [A1] & "!OpenInt"
End If
End Sub



If I want to set a template in which I key-in any cell with the stock number in column A of a spreadsheet, it then returns the last price in the corresponding cells in column B... to I.

How can I do it?

Sa

Back to top
  • User Profile
  • View All Posts by User
  • View Thanks

Wanna join the discussion?! Login to your Discussions forum accountor Register a new forum account.

Back to top  
wabbit  
#2 Posted : Tuesday, February 27, 2007 7:02:17 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,112
Location: Perth, Western Australia

Was thanked: 17 time(s) in 17 post(s)
You need to use relative (or offset) referenceing in Excel. The Excel help files have heaps on referencing methods.


wabbit [:D]


Back to top
  • User Profile
  • View All Posts by User
  • View Thanks
Spaceant  
#3 Posted : Wednesday, February 28, 2007 10:16:09 PM(UTC)
Spaceant

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 8/16/2005(UTC)
Posts: 182

wabbit wrote:
You need to use relative (or offset) referenceing in Excel. The Excel help files have heaps on referencing methods.


wabbit [:D]


Having search the referencing in excel, but still can't figure out how to do it.......

Back to top
  • User Profile
  • View All Posts by User
  • View Thanks
wabbit  
#4 Posted : Wednesday, February 28, 2007 11:01:52 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,112
Location: Perth, Western Australia

Was thanked: 17 time(s) in 17 post(s)
sa,

Send me your spreadsheet and I will show you an alternative way...

wabbit [:D]


Back to top
  • User Profile
  • View All Posts by User
  • View Thanks
Users browsing this topic
Guest (Hidden)
Discussions  »  Product and Service Development  »  MetaStock  »  Help Needed: DDE Link to Excel with Macro
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2025, Yet Another Forum.NET
  • Terms
  • Privacy Statement
  •  
© Copyright 2025 MetaStock. All rights reserved.