I wanting to extract data from a external database to an excel spreadsheet. I am having trouble writing each field of my recordset to an individual cell in the spreadsheet. Does anyone have an idea as to how I could perform this task. Thank you in advance.
wkbNew.SaveAs strBookName
set worksheet=wkbNew.worksheets("Sheet1"
end sub
'************ open inXl file, write to excel sheet ***
sub write_to_Xl_sheet()
'Xl_in_file
wscript.stdout.writeline " XlinFile is " &Xl_in_file
Set fsXl = CreateObject("Scripting.FileSystemObject"
Set fsXl = fsXl.OpenTextFile(Xl_in_file, ForReading)
'Set up the Headings on the 1st row the spreadsheet
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.