S
sharon
Hi all,
Having this piece of code:
Sub ReadStraightTextFile()
Dim str As String
Dim lin As String
Dim bytArray() As Byte
Dim intcount As Integer
Dim col As Long
Open "C:\wesensors.xml" For Input As #1
col = 0
Line Input #1, strTest
lin = "sensor=" & Chr(34) & "sunset" & Chr(34) & " cat=" & Chr(34) &
"standard" & Chr(34) & " unit=" & Chr(34) & "local" & Chr(34) & ""
col = InStr(1, strTest, lin, vbTextCompare)
str = Mid(strTest, col + 44, 5)
Close #1
End Sub
How can I return str value to a text box named 'SUNSET" in active Publisher
doc?
perhaps I need to add a line similar to:
active.document.SUNSET.VALUE=str ??
Do I need to declare text box into the macro?
Any help would be appreciated
sharon
Having this piece of code:
Sub ReadStraightTextFile()
Dim str As String
Dim lin As String
Dim bytArray() As Byte
Dim intcount As Integer
Dim col As Long
Open "C:\wesensors.xml" For Input As #1
col = 0
Line Input #1, strTest
lin = "sensor=" & Chr(34) & "sunset" & Chr(34) & " cat=" & Chr(34) &
"standard" & Chr(34) & " unit=" & Chr(34) & "local" & Chr(34) & ""
col = InStr(1, strTest, lin, vbTextCompare)
str = Mid(strTest, col + 44, 5)
Close #1
End Sub
How can I return str value to a text box named 'SUNSET" in active Publisher
doc?
perhaps I need to add a line similar to:
active.document.SUNSET.VALUE=str ??
Do I need to declare text box into the macro?
Any help would be appreciated
sharon