Microsoft
Software
Hardware
Network
Question : Access output form
Hi,
I have the following code which outputs a table from Access to Excel.
Can someone advise of the code to automatically sum columns D to U regardless of how many rows are in the Spreadsheet.
Thanks Seamus
Private Sub Command0_Click()
Dim strFile As String
strFile = "F:\BankingandSupport.xls"
'DoCmd.OutputTo acOutputForm, Me.BankingandSupport, acFormatXLS, strFile, False
DoCmd.OutputTo acOutputTable, "Ecomm VS Mkt Data", acFormatXLS, strFile, False
Dim oXL As Object
Dim oWB As Object
Dim oWS As Object
Set oXL = CreateObject("Excel.Applic
ation")
Set oWB = oXL.Workbooks.Open(strFile
)
Set oWS = oWB.Sheets(1)
oWS.Cells.Font.Size = 10
oWS.Rows(1).Font.Bold = True
oWS.UsedRange.EntireColumn
.AutoFit
oXL.Visible = True
Set oWS = Nothing
Set oWB = Nothing
Set oXL = Nothing
End Sub
Answer : Access output form
Have you tried deleting the mail profile and recreating it?
Random Solutions
XP Pro SP3 on Dell Inspiron 9400 notebook with OCZ SSD: BSOD 0xF4 after resume from standby
I am looking forward to learn about JSF with ICEfaces
Replace Windows 2003 DC with a new Windows 2008 DC
How to alter tablespace paramter SEGMENT SPACE MANAGEMENT manual to auto in oracle
Blackberry Enterprise Server Express, MAPI subsystem error
Outlook not attack shortcut (lnk) attach directly the file
How can I improve the RHEL TCP performance
Droid Incredible Exchange Synchronization
How to get rid of dirty shut down state when recovering edb file
Can I write a script to generate another script