Number Format

M

March

Dear All,

I write VBA code in Access to transfer records in Access to Excel.
I've done with the transferring code, however, I don't know how to set the
cell format in Excel in range using VBA.

As I know is

xApp.sheets("Access").range("A3") = Format(Date, "mm/dd/yyyy")

that only one cell in excel.

I need to set as a range like "A1:J50".

Please give me suggestion.


March
 
D

Duane Hookom

I don't know the exact syntax but can usually find out by using the macro
recorder in Excel and then copying the code into a module. Minor
modifications are needed but should be evident.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top