Hi,
How can I have the format of these exported fields to excel to have a phone format (000) 000-0000. The data is stored in the database as 0000000000.
I have changed the format of the cells in the excel template with the result that when the user enters the data directly, the formatting takes effect however not when the data is exported from Access.
Any idea how to include a format in the following lines?
objXLBook.ActiveSheet.Range("J10") = rs.Fields("cust_fax")
objXLBook.ActiveSheet.Range("J9") = rs.Fields("cust_contact_phone")
Thanks
If I did not say it before, I really appreciate the time and expertise of the users on this forum.
How can I have the format of these exported fields to excel to have a phone format (000) 000-0000. The data is stored in the database as 0000000000.
I have changed the format of the cells in the excel template with the result that when the user enters the data directly, the formatting takes effect however not when the data is exported from Access.
Any idea how to include a format in the following lines?
objXLBook.ActiveSheet.Range("J10") = rs.Fields("cust_fax")
objXLBook.ActiveSheet.Range("J9") = rs.Fields("cust_contact_phone")
Thanks
If I did not say it before, I really appreciate the time and expertise of the users on this forum.