If you try to print a workbook from the print preview when the
Add-Ins tab is active in Microsoft Office Excel 2007, the Add-Ins tab
disappears.
Note If you exit Excel 2007 and then restart Excel 2007, the
Add-Ins tab reappears.
↑ Back to the top
To work around this problem, click a tab
other than the Add-Ins tab to make the other tab active before you print the workbook from the print preview.
↑ Back to the top
Microsoft
has confirmed that this is a problem in the Microsoft products that are listed
in the "Applies to" section.
↑ Back to the top
Steps to reproduce the problem
- Start Excel 2007.
- Create a new workbook.
- On the Developer tab, click Visual Basic in the
Code group to start
the Microsoft Visual Basic Editor (VBE).
- Add the following code to the
ThisWorkbook module.
Private Sub Workbook_Open()
Dim sheetbar As Office.CommandBar
Dim menubar As Office.CommandBarControl
Dim dlitem As Office.CommandBarControl
Dim cmdbutton As Office.CommandBarButton
Dim cnt As Integer
On Error Resume Next
Set sheetbar = Application.CommandBars("worksheet menu bar")
Set menubar = sheetbar.Controls("PI")
If menubar Is Nothing Then
Set menubar = sheetbar.Controls.Add(msoControlPopup, temporary:=True, before:=10)
menubar.Caption = "&PI"
End If
End Sub
- On the File menu, click
Save.
- In the Save As dialog box, type
myadd-in in the File name box, click Excel Add-In or Excel 97-2003 Add-In
in the Save as type list, and then click
Save.
- Exit Excel 2007.
- Restart Excel 2007.
- Create a new workbook.
- Click the Microsoft Office Button, and then
click Excel Options.
- Click Add-Ins.
Notice that
myadd-in is listed in the Inactive Application
Add-ins section in the Add-ins list. - Click Excel Add-ins in the
Manage list, and then click
Go.
- In the Add-Ins dialog box, click to select
the myadd-in check box, and then click
OK.
Notice that the Add-Ins tab
appears in Excel 2007. - In the Excel workbook, add any data.
- Click the Add-Ins tab to make the
tab active.
- Click the Microsoft Office Button, point to
Print, and then click Print
Preview.
- On the Print Preview tab, click Print in the Print
group.
Notice that when the
Print dialog box appears, the Add-Ins tab in
the workbook disappears.
↑ Back to the top