Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel 2000 macro error

I am using Excel 2000 SP3 on a Win 2000 system. I am
trying to get the filename with path to print in the
footer of a workbook. I found the following code online
to do what I want:

Private Sub Workbook_BeforePrint(Cancel As Boolean)
ActiveSheet.PageSetup.LeftFooter =
ActiveWorkbook.FullName
End Sub

When I 1st tried it a few months ago, it worked without
any problem. Now when I try to print or print preview I
get: Run-time error '50290': Method 'FullName' of
object '_workbook' failed and nothing appears in the
footer.

Does anyone have any idea why this isn't working?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Excel 2000 macro error

Bryce,

Long-shot, but it might be wrap-around. Try this

Private Sub Workbook_BeforePrint(Cancel As Boolean)
ActiveSheet.PageSetup.LeftFooter = _
ActiveWorkbook.FullName
End Sub


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Bryce" wrote in message
...
I am using Excel 2000 SP3 on a Win 2000 system. I am
trying to get the filename with path to print in the
footer of a workbook. I found the following code online
to do what I want:

Private Sub Workbook_BeforePrint(Cancel As Boolean)
ActiveSheet.PageSetup.LeftFooter =
ActiveWorkbook.FullName
End Sub

When I 1st tried it a few months ago, it worked without
any problem. Now when I try to print or print preview I
get: Run-time error '50290': Method 'FullName' of
object '_workbook' failed and nothing appears in the
footer.

Does anyone have any idea why this isn't working?



Reply
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
Excel 2000 error message Bill New Users to Excel 3 January 4th 07 06:41 PM
Excel 2000 error message Bill New Users to Excel 0 January 4th 07 02:50 PM
Macro error after switching from Excel 2000 to Excel 2003 Jake Burnham Excel Discussion (Misc queries) 1 January 10th 06 08:10 PM
How do I resolve debug error macro Excel 2000? At least, any lead Excel 2000 Macros debugger Excel Discussion (Misc queries) 5 October 25th 05 08:56 AM
XP vs 2000 macro error Michael Miazga[_2_] Excel Programming 1 July 21st 03 09:08 PM


All times are GMT +1. The time now is 10:26 PM.

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

About Us

"It's about Microsoft Excel"