OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

DDE not updated

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
hazabaral
Power User
Power User


Joined: 16 Apr 2008
Posts: 69

PostPosted: Fri Sep 05, 2008 5:38 am    Post subject: DDE not updated Reply with quote

I am trying to get value from application "RRHUT", but when I press the button for macro I get updated value, I want to get continous update from the "RRHUT" application.
Any suggestion to change the macro ?


Sub UPDATE
Dim oSheet
oSheet = ThisComponent.Sheets(0)
Dim oCel1

Dim nDDEChannel as Integer
Dim S as String

Dim q_name1 as String
Dim q_name2 as String

q_name1 = oSheet.getCellByPosition(2,Cool.string
q_name2 = oSheet.getCellByPosition(2,9).string

nDDEChannel=DDEInitiate("RRHUT", q_name1)
oCel1 = oSheet.getCellByPosition(2,1)
S=DDERequest(nDDEChannel,q_name2)
oCel1.setValue(S)

End Sub
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group