Hi folks, need some help on a problem I am having:-
I have three tables I'm trying to export into Excel. These are:-
Master
Live
Archive
I have a template excel spreadsheet called:-
Draft Workbook.xls
Inside this template file are three worksheets called:-
Master
Live
Archive
The template file is stored in this location:-
T:\PH DMT\PS folder\PS Workbook\Export Folder
I want to export the three tables into the corresponding worksheets. The worksheets have header columns, so the data needs to imported into cell A6 in each of the worksheets.
The problem:-
If I try the transferspreadsheet option I get the "too many fields defined" error. I have read a million threads on this subject but I cant seem to adapt them to my needs. Or when I do get it to work I cant nest the statements properly.
I would like to assign the code to the On Click event of a command button
Please can somebody help me out?
I have three tables I'm trying to export into Excel. These are:-
Master
Live
Archive
I have a template excel spreadsheet called:-
Draft Workbook.xls
Inside this template file are three worksheets called:-
Master
Live
Archive
The template file is stored in this location:-
T:\PH DMT\PS folder\PS Workbook\Export Folder
I want to export the three tables into the corresponding worksheets. The worksheets have header columns, so the data needs to imported into cell A6 in each of the worksheets.
The problem:-
If I try the transferspreadsheet option I get the "too many fields defined" error. I have read a million threads on this subject but I cant seem to adapt them to my needs. Or when I do get it to work I cant nest the statements properly.
I would like to assign the code to the On Click event of a command button
Please can somebody help me out?