Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Viewing Headers

thanks for catching that. It is something I have known and often forget.

"Gord Dibben" wrote:

bj and Duggan

BeforePrint is workbook code and will not run from a sheet module.

Must go into Thisworkbook module.

Right-click on the Excel Icon left of "File" on the main menu in Excel or on the
Excel Icon at left side of Title bar if not maximized.

Select "View Code" from the dropdown.

A module will open.

Paste the code into that module. Save and close then re-open.


Gord Dibben MS Excel MVP

On Thu, 12 Jul 2007 14:22:03 -0700, bj wrote:

go to the sheet you want it to work in and right click on the tab
selecy view code
paste the sub in the module

again make sure the Sheet_name is the name you have for the sheet
and the cell reference is the cell in which you will have the name.



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unlock for Viewing Edmund Excel Worksheet Functions 0 May 2nd 06 05:08 AM
Viewing in web Corrine Charts and Charting in Excel 0 January 26th 06 06:30 PM
Viewing workbooks Margie Excel Discussion (Misc queries) 2 January 25th 06 04:02 PM
Viewing footers and headers in normal view Chris Jones in Perth WA Excel Discussion (Misc queries) 2 June 7th 05 01:24 PM
viewing formulas Tom Andrew Excel Discussion (Misc queries) 1 May 26th 05 06:40 PM


All times are GMT +1. The time now is 07:43 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"