Oct 15, 2004 #1 jabmod MIS Joined Sep 12, 2004 Messages 68 Location US How do I create an excel file to my c drive. Thanks
Nov 1, 2004 #2 VBrit Programmer Joined May 26, 2004 Messages 145 Location GB you can use the excel automation server, ideally late bound so that you can maintain compatibility with other versions of excel on the client box: dim oxlApp as Object dim oxlWB as object set oxl = createobject("Excel.Application") set oxlWB = oxl.workbooks.add with oxlWB 'do all your stuff to populate the workbook / sheets end with oxl.saveas "your target filename" 'release memory set oxlWB = nothing oxlApp.quit set oxlApp = nothing Hope this is of use. VBrit Upvote 0 Downvote
you can use the excel automation server, ideally late bound so that you can maintain compatibility with other versions of excel on the client box: dim oxlApp as Object dim oxlWB as object set oxl = createobject("Excel.Application") set oxlWB = oxl.workbooks.add with oxlWB 'do all your stuff to populate the workbook / sheets end with oxl.saveas "your target filename" 'release memory set oxlWB = nothing oxlApp.quit set oxlApp = nothing Hope this is of use. VBrit
Nov 9, 2004 #3 bombdropVB Programmer Joined Dec 3, 2002 Messages 59 Location GB Try the following Excell creation In VB this will creat a workbook and sheets without Excel on the machine Hope this helps Upvote 0 Downvote
Try the following Excell creation In VB this will creat a workbook and sheets without Excel on the machine Hope this helps