PC Review


Reply
Thread Tools Rate Thread

Will anyone help a new user out there?

 
 
49niner
Guest
Posts: n/a
 
      17th Mar 2008
This is my second time posting this question ... Please help!

I have 2 workbooks. One consist of a report cover page created with
textboxes, shading, etc. The second workbook has all of my data. I would
like to merge the two workbooks without losing any of my formatting.

I have a macro that creates the data portion of my report and just want
additional code to produce the report with an attached coversheet.


Sub make_report2()
'
'
' Make_Report Macro
' Macro recorded 3/5/2008 by Someone
'
'
Sheets("ENLDATA").Copy Before:=Sheets(2)
Sheets("ENLDATA (2)").Select
Sheets("ENLDATA (2)").Name = "ENLREPORT2"

Cells.Select
Selection.Sort Key1:=Range("A2"), Order1:=xlAscending, Key2:=Range("B2") _
, Order2:=xlAscending, Key3:=Range("C2"), Order3:=xlAscending, Header:= _
xlGuess, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom

End Sub

' Sheets("ENLREPORT2").Select
' ActiveWindow.SmallScroll Down:=94
' Sheets("ENLREPORT2").Name = "ENLREPORT2"
' Sheets("ENLREPORT2").Select
' Range("R21").Select
' ActiveWorkbook.Close
' Workbooks.Open Filename:="H:\ss\enlformat2.xls"

--
53214920


 
Reply With Quote
 
 
 
 
XP
Guest
Posts: n/a
 
      17th Mar 2008
Hi,

Knowing this forum, someone will likely trump my response with a better
idea; however, if it were me, I would just record a macro to copy your cover
sheet (i.e. the entire sheet - not just the images) from its source workbook
into the file where your report resides and just print them as two separate
pages in the proper sequence.

If you want the cover to physically appear in the same sheet as the report,
then determine the number of rows the cover must consume to fill a whole
page. Then record a macro to insert that number of rows at the top of your
report.

On your cover, select all drawing objects and group them. Then record a
second macro to copy the image into your report.

Mixing graphics like this can be dicey. Hope this helps somehow...

"49niner" wrote:

> This is my second time posting this question ... Please help!
>
> I have 2 workbooks. One consist of a report cover page created with
> textboxes, shading, etc. The second workbook has all of my data. I would
> like to merge the two workbooks without losing any of my formatting.
>
> I have a macro that creates the data portion of my report and just want
> additional code to produce the report with an attached coversheet.
>
>
> Sub make_report2()
> '
> '
> ' Make_Report Macro
> ' Macro recorded 3/5/2008 by Someone
> '
> '
> Sheets("ENLDATA").Copy Before:=Sheets(2)
> Sheets("ENLDATA (2)").Select
> Sheets("ENLDATA (2)").Name = "ENLREPORT2"
>
> Cells.Select
> Selection.Sort Key1:=Range("A2"), Order1:=xlAscending, Key2:=Range("B2") _
> , Order2:=xlAscending, Key3:=Range("C2"), Order3:=xlAscending, Header:= _
> xlGuess, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
>
> End Sub
>
> ' Sheets("ENLREPORT2").Select
> ' ActiveWindow.SmallScroll Down:=94
> ' Sheets("ENLREPORT2").Name = "ENLREPORT2"
> ' Sheets("ENLREPORT2").Select
> ' Range("R21").Select
> ' ActiveWorkbook.Close
> ' Workbooks.Open Filename:="H:\ss\enlformat2.xls"
>
> --
> 53214920
>
>

 
Reply With Quote
 
49niner
Guest
Posts: n/a
 
      18th Mar 2008
Thanks ... I'll try this and let you know my outcome!
--
53214920


"XP" wrote:

> Hi,
>
> Knowing this forum, someone will likely trump my response with a better
> idea; however, if it were me, I would just record a macro to copy your cover
> sheet (i.e. the entire sheet - not just the images) from its source workbook
> into the file where your report resides and just print them as two separate
> pages in the proper sequence.
>
> If you want the cover to physically appear in the same sheet as the report,
> then determine the number of rows the cover must consume to fill a whole
> page. Then record a macro to insert that number of rows at the top of your
> report.
>
> On your cover, select all drawing objects and group them. Then record a
> second macro to copy the image into your report.
>
> Mixing graphics like this can be dicey. Hope this helps somehow...
>
> "49niner" wrote:
>
> > This is my second time posting this question ... Please help!
> >
> > I have 2 workbooks. One consist of a report cover page created with
> > textboxes, shading, etc. The second workbook has all of my data. I would
> > like to merge the two workbooks without losing any of my formatting.
> >
> > I have a macro that creates the data portion of my report and just want
> > additional code to produce the report with an attached coversheet.
> >
> >
> > Sub make_report2()
> > '
> > '
> > ' Make_Report Macro
> > ' Macro recorded 3/5/2008 by Someone
> > '
> > '
> > Sheets("ENLDATA").Copy Before:=Sheets(2)
> > Sheets("ENLDATA (2)").Select
> > Sheets("ENLDATA (2)").Name = "ENLREPORT2"
> >
> > Cells.Select
> > Selection.Sort Key1:=Range("A2"), Order1:=xlAscending, Key2:=Range("B2") _
> > , Order2:=xlAscending, Key3:=Range("C2"), Order3:=xlAscending, Header:= _
> > xlGuess, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
> >
> > End Sub
> >
> > ' Sheets("ENLREPORT2").Select
> > ' ActiveWindow.SmallScroll Down:=94
> > ' Sheets("ENLREPORT2").Name = "ENLREPORT2"
> > ' Sheets("ENLREPORT2").Select
> > ' Range("R21").Select
> > ' ActiveWorkbook.Close
> > ' Workbooks.Open Filename:="H:\ss\enlformat2.xls"
> >
> > --
> > 53214920
> >
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
XFER User Account data from old User Acct to Newly created User Ac PeeWilly Windows XP Help 2 26th Jan 2008 03:34 PM
User Profile Bad if this user is not first user logged onto Vista Tom Windows Vista Administration 1 14th May 2007 03:11 AM
Windows profile migrated from user A and now user B get's User A.. =?Utf-8?B?S2V2aW4xYUI=?= Microsoft Outlook Discussion 1 27th Jun 2006 07:09 PM
Copying user profile from one user account to another user account on the same conputer ---- 3 challenges , 2 of them solved bobdouble@hotmail.com Windows XP Setup 2 4th Mar 2006 08:24 AM
User accounts user.WINDOWS user.server and user.server.0000 Carl lackey Windows XP Help 1 7th Nov 2004 03:19 AM


Features
 

Advertising
 

Newsgroups
 


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