I`m working with a procomm script from the thread thread448-1143875 to generate NPA codes, I've got a excel file with this:
NPA RLI
1200 2
1201 2
1202 3
1203 2
end
When I run the programm for creating NPA, It makes the following:
>LD 90
ESN000
MEM AVAIL: (U/P): 2500295 USED U P: 541292 71372 TOT: 3112959
DISK RECS AVAIL: 896
REQ NEW
CUST 0
FEAT NET
TRAN AC1
TYPE NPA
NPA
MEM AVAIL: (U/P): 2500295 USED U P: 541292 71372 TOT: 3112959
DISK RECS AVAIL: 896
REQ
ESN004
It doesnt send the information from the excel cells, It seems that excel cells are not being read, I tried a simple programm for reading a cell:
proc main
long LinkVar, SystemVar ; Variables containing DDE Id's.
string szText ; Text read from DDE link to Excel.
; Set up DDE links to Excel's system and a spreadsheet.
; must be running in order for this script to work properly.
ddeinit LinkVar "excel" "sheet1"
dderequest LinkVar "R1C1" szText ; Make hot link to row 1
usermsg szText ; Display cell contents.
endproc
But the usermsg display nothing, I've got the string "hello" in cell R1C1
NPA RLI
1200 2
1201 2
1202 3
1203 2
end
When I run the programm for creating NPA, It makes the following:
>LD 90
ESN000
MEM AVAIL: (U/P): 2500295 USED U P: 541292 71372 TOT: 3112959
DISK RECS AVAIL: 896
REQ NEW
CUST 0
FEAT NET
TRAN AC1
TYPE NPA
NPA
MEM AVAIL: (U/P): 2500295 USED U P: 541292 71372 TOT: 3112959
DISK RECS AVAIL: 896
REQ
ESN004
It doesnt send the information from the excel cells, It seems that excel cells are not being read, I tried a simple programm for reading a cell:
proc main
long LinkVar, SystemVar ; Variables containing DDE Id's.
string szText ; Text read from DDE link to Excel.
; Set up DDE links to Excel's system and a spreadsheet.
; must be running in order for this script to work properly.
ddeinit LinkVar "excel" "sheet1"
dderequest LinkVar "R1C1" szText ; Make hot link to row 1
usermsg szText ; Display cell contents.
endproc
But the usermsg display nothing, I've got the string "hello" in cell R1C1