PC Review


Reply
Thread Tools Rate Thread

Change Header/Footer w/ Worksheet Option Buttons

 
 
Ryan H
Guest
Posts: n/a
 
      8th Dec 2009
I have a workbook named QUOTES that uses a referenced add-in workbook named
Add-In which contains all code to manipulate QUOTES. I have 2 option buttons
on Sheet1 in QUOTES. One named optAdTech and the other optFormetco. These
option buttons represent two different companies. I need to change the
Header and Footer information to whichever company option button is true when
the quote is printed in the BeforePrint Event in QUOTES.

What is the best way to do this? Note: Left Header is company logo, Right
Header is company address, Center Footer is text.

Would it be possible to save the AdTech's header/footer information and
Formetco's header/footer information in the Add-In and then apply it in
QUOTES? For example:

Private Sub Workbook_BeforePrint(Cancel As Boolean)

Select Case True

Case optAdTech
' call AdTech header/footer data from add-in

Case optFormetco
' call Formetco header/footer data from add-in

End Select

End Sub

--
Cheers,
Ryan
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      8th Dec 2009
Check your other post.

Ryan H wrote:
>
> I have a workbook named QUOTES that uses a referenced add-in workbook named
> Add-In which contains all code to manipulate QUOTES. I have 2 option buttons
> on Sheet1 in QUOTES. One named optAdTech and the other optFormetco. These
> option buttons represent two different companies. I need to change the
> Header and Footer information to whichever company option button is true when
> the quote is printed in the BeforePrint Event in QUOTES.
>
> What is the best way to do this? Note: Left Header is company logo, Right
> Header is company address, Center Footer is text.
>
> Would it be possible to save the AdTech's header/footer information and
> Formetco's header/footer information in the Add-In and then apply it in
> QUOTES? For example:
>
> Private Sub Workbook_BeforePrint(Cancel As Boolean)
>
> Select Case True
>
> Case optAdTech
> ' call AdTech header/footer data from add-in
>
> Case optFormetco
> ' call Formetco header/footer data from add-in
>
> End Select
>
> End Sub
>
> --
> Cheers,
> Ryan


--

Dave Peterson
 
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
Change Header & Footer Info w/ Worksheet Option Buttons Ryan H Microsoft Excel Misc 1 8th Dec 2009 04:59 PM
Urgent: VB.NET Code to Change Excel Worksheet Header/Footer =?Utf-8?B?RWxlbmE=?= Microsoft VB .NET 5 13th Mar 2006 07:43 PM
VB. NET Code to Change Excel Worksheet Header/Footer. =?Utf-8?B?RWxlbmE=?= Microsoft Excel Programming 2 13th Mar 2006 06:17 PM
How to add tool buttons in custom header & footer dialog box? =?Utf-8?B?d2JmcmVlMg==?= Microsoft Excel Setup 1 23rd Jan 2006 06:16 PM
Excel-Footer Mass change of only Header and not footer M.Raguram Microsoft Excel Worksheet Functions 1 16th Jan 2004 12:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:40 PM.