I am using Excel automation and my application is written in visual basic.
I am not expert on Excel and find it quite inconsistent in many ways.
The current problem I have is this:
moExcelWS.Cells(CurrentRow, oXLLog).Text = Format(Date, "yyyy-mm-dd") & " "
& Format(Time, "hh:mm:ss") & """" & "," & """" & RecordedFile & """" & "," &
"""" & Record & """" & "," & """" & CallLength & """"
Using.Text in above code does NOT insert data in the specified cell,
however when I use .Value the data is written into cell.
moExcelWS.Cells(CurrentRow, oXLLog).Value = Format(Date, "yyyy-mm-dd") & " "
& Format(Time, "hh:mm:ss") & """" & "," & """" & RecordedFile & """" & "," &
"""" & Record & """" & "," & """" & CallLength & """"
Now, the data I am writing in is string data not numeric data. Why .Text
does not work?
Jack