Edit excel workbook from Access

polina

Registered User.
Local time
Today, 18:53
Joined
Aug 21, 2002
Messages
100
Hi,

I wonder if anyone could show me how to rename the several worksheets within one excel workbook that I access from within the Access module.

What I do is I let user choose a excel file, then create Excel object

Dim xls As Excel.Workbook
Dim wks As Excel.Worksheet

Set xls = Workbooks.Open("C:\File.xls")
Set wks = xls.Worksheets

The excel file has many sheets in it. I want to be able access each and rename it. I also want to edit the data type format in every sheet.

Please advise.
Any hints would be greatly appreciated.

Thanks.
 

Users who are viewing this thread

Back
Top Bottom