bk1gti2
08-01-2002, 07:25 AM
I am making some progress with my Excel/VBA dde application. The only thing that has me hung up is poking into the sales journal.
channelnum = DDEInitiate("peachw", "BCS")
DDEPoke channelnum, "file=SALESJOURNAL,CLEAR", Cells(1, 1)
DDEPoke channelnum, "file=SALESJOURNAL,field=date", Cells(1, 2)
DDEPoke channelnum, "file=SALESJOURNAL,field=customer", Cells(1, 3)
DDEPoke channelnum, "file=SALESJOURNAL,field=firstdistribution", Range("Dist2")
DDEPoke channelnum, "file=SALESJOURNAL,SAVE", Cells(1, 1)
Dist 2 is a range in the spreadsheet where I have the fields for the distibution.
I get a:
DDE_ACK: Cannot accept invalid data
in the DDE conversation when it tries to poke the distibution.
channelnum = DDEInitiate("peachw", "BCS")
DDEPoke channelnum, "file=SALESJOURNAL,CLEAR", Cells(1, 1)
DDEPoke channelnum, "file=SALESJOURNAL,field=date", Cells(1, 2)
DDEPoke channelnum, "file=SALESJOURNAL,field=customer", Cells(1, 3)
DDEPoke channelnum, "file=SALESJOURNAL,field=firstdistribution", Range("Dist2")
DDEPoke channelnum, "file=SALESJOURNAL,SAVE", Cells(1, 1)
Dist 2 is a range in the spreadsheet where I have the fields for the distibution.
I get a:
DDE_ACK: Cannot accept invalid data
in the DDE conversation when it tries to poke the distibution.