igorsandler
Programmer
Hello,
I have a situation when I need to format Excel file column(file created programmatically with Excel object) that contains Social Security numbers to be right justified. The problem I have is with SSN with leading zero(s). They are coming out left justified.
Ideally I would like to programmatically format Column as General or Text and set it to have right alignment. I tried to use:
oSheet.RANGE["D","D"].EntireColumn.NumberFormat = "General"
oSheet.COLUMNS("D").EntireColumn.AutoFit
Getting an error on the first line, due to incorrect reference or syntax.
Any help would be appreciated.
Also, is there a decent manual or book or whatever on how to use Excel automation with FoxPro 7?
Igor
I have a situation when I need to format Excel file column(file created programmatically with Excel object) that contains Social Security numbers to be right justified. The problem I have is with SSN with leading zero(s). They are coming out left justified.
Ideally I would like to programmatically format Column as General or Text and set it to have right alignment. I tried to use:
oSheet.RANGE["D","D"].EntireColumn.NumberFormat = "General"
oSheet.COLUMNS("D").EntireColumn.AutoFit
Getting an error on the first line, due to incorrect reference or syntax.
Any help would be appreciated.
Also, is there a decent manual or book or whatever on how to use Excel automation with FoxPro 7?
Igor