|
-
Mar 8th, 2004, 08:57 AM
#1
Thread Starter
Member
Saving To Excel
Hi all,
Dim xl As New Object
Dim wb As Excel.Workbook
Dim sh As Excel.Worksheet
xl = CreateObject("excel.application")
wb = xl.Workbooks.Open("c:\file.xls")
sh = wb.Worksheets(1)
sh.Name = "Bench-Marking DATABASE"
With sh
.Cells(2, 1).Value = "T"
.Cells(2, 2).Value = "D"
.Cells(2, 3).Value = "L"
.Cells(2, 4).Value = "T"
.Cells(2, 5).Value = "A"
.Cells(2, 6).Value = "C"
End With
wb.save()
i managed to save the file, but i always get this pop up window asking me to whether to save the file or not,
is there a way i can do it, wihout having to see the small window.
take care
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
|