Question

Default is printing the entire workbook not active sheet

Asked by: bryandillon

I have 2 users who are having the same issue. For some odd reason, their installation of excel 2003 is selecting the entire workbook as the default printing option rather than the active sheet. They are up to date with all the service pack and updates available for office 2003. I even un-installed and re-installed the application and have the same result. It does not matter if it is a new workbook or a existing one.
Can anyone give me any ideas

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2007-01-24 at 12:57:02ID22135500
Tags

print

,

entire

,

workbook

,

active

Topic

Microsoft Excel Spreadsheet Software

Participating Experts
3
Points
250
Comments
11

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. returning number of sheets in a workbook
    Is there a formula I can use to return the total number of sheets in a the active workbook?
  2. list sheets in workbook -
    I have a workbook with 40 work sheets. Can I pull up a quick list of all the sheet names and print them? Thanks
  3. Limit access to a Excel Workbook Sheet that is posted on th…
    I have a excel workbook that has 2 sheets. It is saved as a web page and posted on the intranet. I can use windows security restrictions to restrict access to the Workbook file but I also want to restrict access to certain users on certain sheets inside the Workbook. Is this...
  4. Adding sheets to an excel workbook...
    I have an excel workbook that has eight sheets to it. I need to insert a new sheet in the middle of the workbook but the move/copy button is gray and therefore I cannot add a new sheet. The workbook is password procteded. How can I add sheets?
  5. compare workbook add sheet or merge in sheet
    Hello Experts, I need help to merge data’s together. example Main Workbook Sheets Name = 002, 005, 008, 012, 028, 032, 033, 042, 063 etc,,, Workbook 1 Sheets Name =005, 008, 009, 029, 032, etc I need to merge another 4 workbook to the main one I would like to compare if work...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: ShaneDevenshirePosted on 2007-01-24 at 13:32:18ID: 18390356

Hi,

Make sure they only have a single tab selected.  If there are multiple tab selected the default is "sheets".

Cheers,
Shane Devenshire

 

by: zorvekPosted on 2007-01-24 at 13:41:13ID: 18390440

...which is the same as when only one sheet was selected...also the same as when all sheets are selected.

© Kevin

 

by: bryandillonPosted on 2007-01-24 at 13:45:37ID: 18390483

Already checked that and still the same results. You can open a new workbook go directly to File Print and it shows Entire workbook as the selection.

 

by: calacucciaPosted on 2007-01-24 at 16:03:07ID: 18391826

The only answer I can find is that somewhere in the Start directory there is a macro which has taken over the print button behaviour in some way.

In code you can call the print button this way and have it showing 'Entire Workbook' selected:

Application.Dialogs(xlDialogPrint).Show , , , , , , , , , , , 3

To show ActiveSheet(s) instead, this code would do the job

Application.Dialogs(xlDialogPrint).Show , , , , , , , , , , , 2

Code is for Excel 2002, to be checked if it is also the 12th argument of your version of Excel

Besides this, I only found information that this default setting can not be changed from registry.

 

by: calacucciaPosted on 2007-01-24 at 16:06:08ID: 18391839

Regardless of how to do it (the code above), check out if there are personal.xla macros active for these users or if there is other xla or xls workbooks in the start directory.

 

by: bryandillonPosted on 2007-01-25 at 05:42:04ID: 18395153

No luck, I looked for what you suggested but did not find anything. I really don't  want to re-image these users machines unless I have no choice. Is it possible to make a print button in code that will print active sheets?

 

by: calacucciaPosted on 2007-01-25 at 11:04:34ID: 18398328

You could use the code above to have the print dialog pop up with active sheet(s) checked.

Just link it to a button

Application.Dialogs(xlDialogPrint).Show , , , , , , , , , , , 2


You can also create a button linked to this code, which will automatically print all selected sheets, but option above is better, as the user still has the dialog and can choose additional print settings.

Here is alternative code for button to print all selected sheets:

Sub printActiveSheets()
Dim ms As Sheets
Set ms = ActiveWindow.SelectedSheets
ms.PrintOut
End Sub

 

by: ShaneDevenshirePosted on 2007-01-25 at 20:30:42ID: 18402143

Another thing, make sure the entire sheet is not selected before you go to the print command, ie. select a single cell and try the print command.

Cheers,
Shane Devenshire

 

by: zorvekPosted on 2007-01-25 at 21:12:48ID: 18402268

Shane, Excel always selects the "Active sheets" option regardless of whether one sheet, two sheets, all sheets, or all the cells on the sheet are selected. This is true in 97, 2000, 2002, and 2003. When the installation is as designed and not corrupt then nothing the user does will change that.

And a VBA bandaid is not the solution either.

Bryan, there is something amiss with your installation. It's certainly odd that the problem happens on two machines and the only conclusion that I can come to is those two machines opened the same workbook or add-in that did something undesirable. The most likely culprit is an add-in that is overriding your print command. The second possibility is the Excel installation is corrupt. I have tried to find any information that refers to a registry or other option that determines the default setting. All I was able to find are posts asking how to do what you are experiencing but the answer was always a VBA hack - no registry or other more permanent solution.

The following "fix Excel" steps cover both of the above possibilities and more. Try to reproduce the problem after each step and, if resolved, there is no need to continue to the next step. Skip steps you have already completed. Step 8 is pretty much equivelant to a re-image.

Step 1 - Install Updates

Go to http://office.microsoft.com/en-us/default.aspx, click on "Check for Updates", and follow the instructions.

Step 2 - Repair the Excel Installation

This option is only available in Excel 2000 and later. To repair the Excel installation, start Excel and choose the menu command Help->Detect and Repair. The product CD may be required.

Step 3 - Remove/Reset the Tool Bar Configuration File

Reset the toolbar settings file by deleting the Tool Bar Configuration File while Excel is not running. This file is usually located in the folder

   C:\Documents and Settings\Your Login Name\Application Data\Microsoft\Excel

and is named "Excel *.xlb".

Step 4 - Reset the Registry Entries

Instruct Excel to reset the Excel registry entries. Do this by opening the Start menu and selecting Run. Enter "Excel.exe /RegServer" and click OK.

Step 5 - Clear the Option Settings

Run RegEdit (Start->Run, enter "regedit", and press ENTER) and navigate to HKEY_CURRENT_USER\Software\Microsoft\x.0\Options where x is 9 for Excel 2000, 10 for Excel 2002 or XP, and 11 for Excel 2003. Delete all entries except for "(Default)".

Step 6 - Remove Custom Add-Ins

Remove any custom add-ins from the XLStart folder and the folder that is specified in the "At startup, open all files in" box on the General tab in the Options dialog box. A custom add-in is any Excel workbook created by the user and saved as an Add-In in an Excel startup folder.

Step 7 - Reinstall/Remove Third Party Add-Ins

This step involves looking for and removing third party add-ins until all add-ins have been dealt with and either removed or determined to not be the cause of the problem. Adobe Acrobat and Norton Anti-Virus are known to have conflicts with Excel. Upgrading to the latest version of these programs usually solves most problems.

The easiest way to remove an add-in is to, from within Excel, choose the menu command Tools->Add-Ins. In the Add-Ins available box, clear the check box next to the add-in to unload and click OK. To remove the add-in from the menu, restart Excel.

To completely remove an add-in use the add-in manufacturer's uninstaller. Uninstallers are found in the Add or Remove Programs control panel.

Without an uninstaller, completely removing an add-in from a computer is possible but not easy. First look in all known XLSTART folders. The most common locations of these folders are:

   C:\Program Files\Microsoft Office\Office11\Xlstart
   C:\Program Files\Microsoft Office\Office10\Xlstart
   C:\Program Files\Microsoft Office\Office\Xlstart
   C:\Documents and Settings\User Name\Application Data\Microsoft\Excel\XLSTART
   C:\Winnt\Profiles\User name\Application Data\Microsoft\Excel\Xlstart
   The folder that is specified in the "At startup, open all files in" box on the General tab in the Options dialog box.

Look for any file that might be the add-in. After quitting Excel, move the targeted file to another location (do not delete it until sure it is the desired add-in.) Start Excel and confirm that the add-in is removed. If not, return the moved add-in to the original XLSTART folder and try again with another.

Some add-ins are not stored in XLSTART folders and are loaded into Excel using Registry entries. If the correct Registry entry can be found then it can be used to locate and delete the add-in. The Registry entry should also be removed but only after making a backup of the Registry and confirming that the add-in identified is the correct add-in. The most common Registry locations where add-ins are located are:

   HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Excel\Add-in Manager
   HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Excel\Options (add-ins are listed in the OPEN and OPENn entries)
   HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Excel\Add-in Manager
   HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Excel\Options (add-ins are listed in the OPEN and OPENn entries)

Step 8 - Completely Remove and Reinstall Excel/Office

This is the most drastic measure and, if done correctly, is the last possible step short of tossing the box out the window. The idea behind completely removing an Office/Excel installation is to purge any and all files and registry entries that might be causing the problem. The normal Office/Excel uninstaller function is not designed to do this. Each version of Office/Excel has different procedures for complete removal. These are listed by version below.

Office 2003
There is no official documented technique for completely removing Office 2003. Open the Add or Remove Programs control panel, locate Microsoft Office, and click Remove. Additional steps follow below to manually purge Office remnants.

Office 2002/Office XP
There is no official documented technique for completely removing Office 2002/Office XP. Open the Add or Remove Programs control panel, locate Microsoft Office, and click Remove. Additional steps follow below to manually purge Office remnants.

Office 2000
Run this cleanup utility: http://support.microsoft.com/kb/239938/en-us.
Run this cleanup utility: http://support.microsoft.com/default.aspx?scid=KB;EN-US;q247674&ID=KB;EN-US;q247674

Office 97
Follow these instructions: http://support.microsoft.com/default.aspx?scid=kb;en-us;254250.
Run this cleanup utility: http://support.microsoft.com/default.aspx?scid=kb;en-us;Q176823.

After completing the above instructions for the specific version of Office, do the following:

Run this cleanup utility to clean up Windows Installer remains for Office: http://support.microsoft.com/default.aspx?scid=kb;en-us;290301&Product=offxp

Open the Registry (click Start and select Run, enter RegEdit and click OK) and navigate to HKEY_LOCAL_MACHINE->Software->Microsoft and delete the "Office" node.

Open Windows File Explorer, navigate to C:\Program Files and delete the "Microsoft Office" folder.

Download, install, and run CCCleaner (http://www.ccleaner.com). Caution: This utility clears the browser cache so, if that is NOT desired, make sure that option is off or all saved website cookies will be removed. Cookies contain login status, preferences, etc. Select Cleaner and click Run Cleaner. Select Issues and click Scan for Issues. If any issues are listed make sure they are all checked and click Fix selected issues. Save a copy of the registry if desired. Click Fix All Selected Issues when the first confirmation prompt is displayed. Repeat scanning and fixing issues until no new issues are found.

Reinstall Office.

Kevin

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...