PC Review


Reply
Thread Tools Rate Thread

Disable Setup button on Print Preview screen

 
 
Jon Ley
Guest
Posts: n/a
 
      30th Nov 2007
We have a spreadsheet data capture application that we require third parties
to use. We have discovered that one cheeky ***** has been adding his own
company's logo in the page header when printing from the spreasheet. I would
like to add our own logo on the template and then protect the 'Page Setup' so
that it can not be changed. I have discovered how to disable the Page Setup
item on the File menu:

For Each Ctrl In Application.CommandBars.FindControls(ID:=247)
Ctrl.Enabled = False
Next Ctrl

However when in Print Preview mode, the 'Setup...' button is still
available. Is there a way to disable this?

I don't know if this is relevant, but I am using Excel 2002 to create the
template, and there is code within the template that puts up a message and
closes the workbook if the version being used to complete the template is
earlier than Excel 2000.
 
Reply With Quote
 
 
 
 
Susan
Guest
Posts: n/a
 
      30th Nov 2007
don't know if you can disable the Setup button on the Print Preview,
but why not just disable the Print Preview?

just an idea
susan


On Nov 30, 8:48 am, Jon Ley <Jon...@discussions.microsoft.com> wrote:
> We have a spreadsheet data capture application that we require third parties
> to use. We have discovered that one cheeky ***** has been adding his own
> company's logo in the page header when printing from the spreasheet. I would
> like to add our own logo on the template and then protect the 'Page Setup' so
> that it can not be changed. I have discovered how to disable the Page Setup
> item on the File menu:
>
> For Each Ctrl In Application.CommandBars.FindControls(ID:=247)
> Ctrl.Enabled = False
> Next Ctrl
>
> However when in Print Preview mode, the 'Setup...' button is still
> available. Is there a way to disable this?
>
> I don't know if this is relevant, but I am using Excel 2002 to create the
> template, and there is code within the template that puts up a message and
> closes the workbook if the version being used to complete the template is
> earlier than Excel 2000.


 
Reply With Quote
 
Jon Ley
Guest
Posts: n/a
 
      3rd Dec 2007
Susan,

Fair comment! I may well just end up doing that. You don't happen to have
the Control ID number off-hand do you?

Thanks,

Jon.

"Susan" wrote:

> don't know if you can disable the Setup button on the Print Preview,
> but why not just disable the Print Preview?
>
> just an idea
> susan
>
>
> On Nov 30, 8:48 am, Jon Ley <Jon...@discussions.microsoft.com> wrote:
> > We have a spreadsheet data capture application that we require third parties
> > to use. We have discovered that one cheeky ***** has been adding his own
> > company's logo in the page header when printing from the spreasheet. I would
> > like to add our own logo on the template and then protect the 'Page Setup' so
> > that it can not be changed. I have discovered how to disable the Page Setup
> > item on the File menu:
> >
> > For Each Ctrl In Application.CommandBars.FindControls(ID:=247)
> > Ctrl.Enabled = False
> > Next Ctrl
> >
> > However when in Print Preview mode, the 'Setup...' button is still
> > available. Is there a way to disable this?
> >
> > I don't know if this is relevant, but I am using Excel 2002 to create the
> > template, and there is code within the template that puts up a message and
> > closes the workbook if the version being used to complete the template is
> > earlier than Excel 2000.

>
>

 
Reply With Quote
 
Jon Ley
Guest
Posts: n/a
 
      3rd Dec 2007
Susan,

Don't worry, I've found it - 109. I think will have to disable the Print
menu item (ID = 4) and Ctrl-P shortcut as well, as there is also a Preview
button on the print dialog box. Thanks again,

Jon.

"Jon Ley" wrote:

> Susan,
>
> Fair comment! I may well just end up doing that. You don't happen to have
> the Control ID number off-hand do you?
>
> Thanks,
>
> Jon.
>
> "Susan" wrote:
>
> > don't know if you can disable the Setup button on the Print Preview,
> > but why not just disable the Print Preview?
> >
> > just an idea
> > susan
> >
> >
> > On Nov 30, 8:48 am, Jon Ley <Jon...@discussions.microsoft.com> wrote:
> > > We have a spreadsheet data capture application that we require third parties
> > > to use. We have discovered that one cheeky ***** has been adding his own
> > > company's logo in the page header when printing from the spreasheet. I would
> > > like to add our own logo on the template and then protect the 'Page Setup' so
> > > that it can not be changed. I have discovered how to disable the Page Setup
> > > item on the File menu:
> > >
> > > For Each Ctrl In Application.CommandBars.FindControls(ID:=247)
> > > Ctrl.Enabled = False
> > > Next Ctrl
> > >
> > > However when in Print Preview mode, the 'Setup...' button is still
> > > available. Is there a way to disable this?
> > >
> > > I don't know if this is relevant, but I am using Excel 2002 to create the
> > > template, and there is code within the template that puts up a message and
> > > closes the workbook if the version being used to complete the template is
> > > earlier than Excel 2000.

> >
> >

 
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
how to disable print button in preview lABUDDY Microsoft Excel Programming 1 22nd Apr 2010 04:53 PM
Disable Preview Button in Print Dialog Box Ryan H Microsoft Excel Programming 0 10th Jul 2009 03:14 PM
Disable print setup button Stanley L. Microsoft Access Reports 0 25th Oct 2008 05:46 AM
Disable print screen button =?Utf-8?B?TGlzYQ==?= Microsoft Access Forms 5 29th Jun 2005 12:59 AM
How do I disable the Margins button in Print Preview Window John Microsoft Excel Programming 0 23rd Jul 2003 03:43 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:19 PM.