Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default 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.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default 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.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default 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.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Business Contact Manager - problems with export of report to Excel The Swede Excel Discussion (Misc queries) 0 August 8th 08 01:20 PM
Export excel data to create report in Word jbrzez Excel Discussion (Misc queries) 2 January 30th 07 02:21 PM
Add Header/Footer to excel report from ASP.. [email protected] Excel Discussion (Misc queries) 4 August 2nd 06 03:03 AM
Add Header/Footer to excel report from ASP.. [email protected] Excel Programming 3 August 2nd 06 02:15 AM
Header in Report Manager Report Steve K Excel Discussion (Misc queries) 0 March 7th 06 07:32 PM


All times are GMT +1. The time now is 12:37 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"