Corticus
Well-known Member
- Joined
- Apr 30, 2002
- Messages
- 1,579
Hi all,
I need to do this:
Dim ExcelSheet As Object
Set ExcelSheet = CreateObject("Excel.Sheet")
With ExcelSheet.Sheets(1).Columns("A:A")
.ColumnWidth = 15
' .HorizontalAlignment = xlRight
End With
I commented out the xlright line, becaue Access can't find it.
How do I add the excel library to access?
Its like this, but for Access I think...
Sub MakeLibrary_Word()
On Error Resume Next
ThisWorkbook.VBProject.References.AddFromGuid _
"{00020905-0000-0000-C000-000000000046}", 8, 0
End Sub
Thank all,
I need to do this:
Dim ExcelSheet As Object
Set ExcelSheet = CreateObject("Excel.Sheet")
With ExcelSheet.Sheets(1).Columns("A:A")
.ColumnWidth = 15
' .HorizontalAlignment = xlRight
End With
I commented out the xlright line, becaue Access can't find it.
How do I add the excel library to access?
Its like this, but for Access I think...
Sub MakeLibrary_Word()
On Error Resume Next
ThisWorkbook.VBProject.References.AddFromGuid _
"{00020905-0000-0000-C000-000000000046}", 8, 0
End Sub
Thank all,