|
-
May 29th, 2001, 08:30 AM
#1
Excel and VBA
I am using this code to enter a recordset from SQL Server 7.0 into Excel.
set rs = cnn1.Execute(SQL)
'Worksheets.Add.Activate
ActiveSheet.Name = "Lucent_Hist"
[a2].CopyFromRecordset rs
ActiveSheet.Columns.AutoFit
The query runs, and the sheet gets renamed, but the data does not populate the spreadsheet.
What is wrong?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|