I am trying to use an existing excel sheet that comes in the same way every time. I usually import the data into foxpro but i believe the currency column is turning the data into a date even though it is imported as a character. To make a long story short, here is the code i am trying to use, however i am very new to this and i am sure i am doing something wrong. I am getting this error on the last line of the code and i am not sure why. "xlSheet is not an object"
tmpsheet = getOBJECT('c:\ftp_over\matrix.xls')
oExcel = tmpsheet.APPLICATION
oExcel.ReferenceStyle = 1 && Ensure Columns in A-B Format instead of 1-2 Format
mcStrtColRow = 'C1'
mcEndColRow = 'C30'
xlSheet = oExcel.activesheet
xlSheet.RANGE[mcStrtColRow,mcEndColRow].EntireColumn.NumberFormat = "@"
thanks for any help
tmpsheet = getOBJECT('c:\ftp_over\matrix.xls')
oExcel = tmpsheet.APPLICATION
oExcel.ReferenceStyle = 1 && Ensure Columns in A-B Format instead of 1-2 Format
mcStrtColRow = 'C1'
mcEndColRow = 'C30'
xlSheet = oExcel.activesheet
xlSheet.RANGE[mcStrtColRow,mcEndColRow].EntireColumn.NumberFormat = "@"
thanks for any help