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
PXE-E55: ProxyDHCP service did not reply to request on port 4011 Using SCCM 2007
Where does this code start?
Column Name in query
Counting number of days between two dates using C#
obtain source (/usr/src) for 8.0-RELEASE-p3
How many database instance that can be supported by SQL Server 2008 Standard Edition?
How do I add a due date column, and sort by the document date in AR Statements?
System Restore Points Not Created on Win 7
Dynamics AX 2009 - AOS Performance
NAT setting and vmware