ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   msAccess Report Header export to Excel (https://www.excelbanter.com/excel-programming/430824-msaccess-report-header-export-excel.html)

slickdock

msAccess Report Header export to Excel
 

I have no excel skills, only msAccess. I can successfully automate the
exporting of my access report to excel using a macro's OutputTo command,
output format excel.

The header is the problem. I want my excel header to look like my multi line
access report header. Instead it breaks each object up into 1 line of
continuous cells.

It should look like this:

Left Aligned Date: 6/5/09 My Centered Report Title
Left Aligned Check No.: 154 My Centered Company Name

Thank you.

joel

msAccess Report Header export to Excel
 
The issue may only be formating. try highlighting row 1 of the spreadsheet.
the go to worksheet menu format - cells - alignment - Wrap Text.

"slickdock" wrote:

I have no excel skills, only msAccess. I can successfully automate the
exporting of my access report to excel using a macro's OutputTo command,
output format excel.

The header is the problem. I want my excel header to look like my multi line
access report header. Instead it breaks each object up into 1 line of
continuous cells.

It should look like this:

Left Aligned Date: 6/5/09 My Centered Report Title
Left Aligned Check No.: 154 My Centered Company Name

Thank you.


slickdock

msAccess Report Header export to Excel
 

That didn't work. Also, maybe I should have been clear to say I don't want
the user to have to do anything in excel; I would like to automate the
process so the worksheet comes over with no more formatting needs.

"Joel" wrote:

The issue may only be formating. try highlighting row 1 of the spreadsheet.
the go to worksheet menu format - cells - alignment - Wrap Text.

"slickdock" wrote:

I have no excel skills, only msAccess. I can successfully automate the
exporting of my access report to excel using a macro's OutputTo command,
output format excel.

The header is the problem. I want my excel header to look like my multi line
access report header. Instead it breaks each object up into 1 line of
continuous cells.

It should look like this:

Left Aligned Date: 6/5/09 My Centered Report Title
Left Aligned Check No.: 154 My Centered Company Name

Thank you.


joel

msAccess Report Header export to Excel
 

How good are you with VBA programming in ACCESS. the excel portion of the
code isn't too complicated.

You can run this macro from access. Yo can get each row of data from the
access database and write the data to the workbook



Sub OpenExcel()

Set excelobj = CreateObject("Excel.application")
excelobj.Application.Visible = True
With excelobj
Set bk = excelobj.workbooks.Add
With .sheets(1)
'write header row
.Range("A1") = "Number"
For RowCount = 2 To 100
.Range("A" & RowCount) = RowCount

Next RowCount

End With
End With


End Sub

"slickdock" wrote:

That didn't work. Also, maybe I should have been clear to say I don't want
the user to have to do anything in excel; I would like to automate the
process so the worksheet comes over with no more formatting needs.

"Joel" wrote:

The issue may only be formating. try highlighting row 1 of the spreadsheet.
the go to worksheet menu format - cells - alignment - Wrap Text.

"slickdock" wrote:

I have no excel skills, only msAccess. I can successfully automate the
exporting of my access report to excel using a macro's OutputTo command,
output format excel.

The header is the problem. I want my excel header to look like my multi line
access report header. Instead it breaks each object up into 1 line of
continuous cells.

It should look like this:

Left Aligned Date: 6/5/09 My Centered Report Title
Left Aligned Check No.: 154 My Centered Company Name

Thank you.



All times are GMT +1. The time now is 01:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com