PC Review


Reply
Thread Tools Rate Thread

Creating a values-only copy - page breaks a problem

 
 
janderson
Guest
Posts: n/a
 
      6th Dec 2006
I create a lot of financial models that I send to potential clients.
In the early stages of negotiation, I tend not to share the working
model but send a copy with all the formulae replaced by their values -
a snapshot, if you like.

I find that Excel models tend to grow into rather large files through
the process of making changes such that if one performs a copy and
paste-special-values in the workbook that one has been using for the
working model, the file size of the resulting model tends to be much
larger than it would have been if the same values and formatting had
been created from scratch.

Therefore, I have a macro that creates a new workbook and copies the
values and formatting and page setup properties etc. from the working
model. This also allows me to use grouping levels to hide rows or
columns that are simply used for interim calculations in the working
model so that they do not appear in the new workbook.

The one remaining annoyance for me is the difficulty of copying manual
page breaks when, because of unwanted hidden columns in the working
model, the location of the page breaks in the destination workbook
needs to be different in cell-reference terms, i.e. a page break that
occurs at location X1 in the source model might need to be at P1 in the
destination model.

I've never worked with page breaks in VBA before so can anyone suggest
an approach to solving this problem?

 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      6th Dec 2006
After you've created that values only worksheet/workbook, record a macro that
removes the pagebreaks.

Then reapply the page breaks where you want. If you have some rules to follow,
you could include them in your code, too.

janderson wrote:
>
> I create a lot of financial models that I send to potential clients.
> In the early stages of negotiation, I tend not to share the working
> model but send a copy with all the formulae replaced by their values -
> a snapshot, if you like.
>
> I find that Excel models tend to grow into rather large files through
> the process of making changes such that if one performs a copy and
> paste-special-values in the workbook that one has been using for the
> working model, the file size of the resulting model tends to be much
> larger than it would have been if the same values and formatting had
> been created from scratch.
>
> Therefore, I have a macro that creates a new workbook and copies the
> values and formatting and page setup properties etc. from the working
> model. This also allows me to use grouping levels to hide rows or
> columns that are simply used for interim calculations in the working
> model so that they do not appear in the new workbook.
>
> The one remaining annoyance for me is the difficulty of copying manual
> page breaks when, because of unwanted hidden columns in the working
> model, the location of the page breaks in the destination workbook
> needs to be different in cell-reference terms, i.e. a page break that
> occurs at location X1 in the source model might need to be at P1 in the
> destination model.
>
> I've never worked with page breaks in VBA before so can anyone suggest
> an approach to solving this problem?


--

Dave Peterson
 
Reply With Quote
 
janderson
Guest
Posts: n/a
 
      14th Dec 2006

> >janderson wrote:
> >
> > Therefore, I have a macro that creates a new workbook and copies the
> > values and formatting and page setup properties etc. from the working
> > model. This also allows me to use grouping levels to hide rows or
> > columns that are simply used for interim calculations in the working
> > model so that they do not appear in the new workbook.
> >
> > The one remaining annoyance for me is the difficulty of copying manual
> > page breaks when, because of unwanted hidden columns in the working
> > model, the location of the page breaks in the destination workbook
> > needs to be different in cell-reference terms, i.e. a page break that
> > occurs at location X1 in the source model might need to be at P1 in the
> > destination model.
> >
> > I've never worked with page breaks in VBA before so can anyone suggest
> > an approach to solving this problem?



>Dave Peterson wrote:
> After you've created that values only worksheet/workbook, record a macro that
> removes the pagebreaks.
>
> Then reapply the page breaks where you want. If you have some rules to follow,
> you could include them in your code, too.
>
> Dave Peterson


Thanks for the suggestion. The thing is, "where I want" is where they
were in the source workbook. What I have now done is to copy even the
hidden rows and columns into the destination workbook. Then I apply
page setup properties and also the pagebreaks. Then I delete the rows
and columns that were hidden in the source workbook. If done this way
round, there is no need to keep track of page break locations.

 
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
Copy Page Breaks jwleonard Microsoft Excel Misc 1 11th Nov 2004 03:55 AM
Copy Page Breaks jwleonard Microsoft Excel Misc 1 10th Nov 2004 12:53 AM
Creating Page Breaks roberta Microsoft Access 0 4th Aug 2003 03:14 PM
Re: Creating Page Breaks Steven Burn Microsoft Access 0 4th Aug 2003 03:01 PM
Re: Creating Page Breaks chas Microsoft Access 0 4th Aug 2003 02:59 PM


Features
 

Advertising
 

Newsgroups
 


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