![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: Dallas, TX
Posts: 312
|
Hello All,
What's wrong with this? I want a footer to dislpay Page "x" of total. b is just a counter and C101 is just a value (total #pages). Thanks With ActiveSheet.PageSetup .LeftFooter = "F:USERFinDeptMBO-FY03Bonus and Comp Plans &F" .CenterFooter = "Page " & b & "Of " & Worksheets("Splash").Range("C101").Value |
|
|
|
|
|
#2 |
|
Legend
Join Date: Feb 2002
Location: Minneapolis, Mn, USA
Posts: 9,704
|
Hard to say if b is failing but if F is a variable, change:
Code:
.LeftFooter = "F:USERFinDeptMBO-FY03Bonus and Comp Plans &F" Code:
.LeftFooter = "F:USERFinDeptMBO-FY03Bonus and Comp Plans " & F _________________ Cheers, NateO ![]() [ This Message was edited by: NateO on 2002-05-09 09:22 ] |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Location: Dallas, TX
Posts: 312
|
Sorry, I should clarify...the left footer works fine, it's the center footer I'm having a problem with.
|
|
|
|
|
|
#4 |
|
Legend
Join Date: Feb 2002
Location: Minneapolis, Mn, USA
Posts: 9,704
|
What's the problem with it? Error, b is nothing, etc.....?
|
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Feb 2002
Location: Dallas, TX
Posts: 312
|
No error at all, just nothing for a center footer.
|
|
|
|
|
|
#6 |
|
Legend
Join Date: Feb 2002
Location: Minneapolis, Mn, USA
Posts: 9,704
|
&F is short for the workbook name, I like it. Hard to say what the issue is, I ran the following:
Code:
Sub test()
With ActiveSheet.PageSetup
.LeftFooter = "F:USERFinDeptMBO-FY03Bonus and Comp Plans &F"
.CenterFooter = "Page " & " test " & "Of " & Worksheets("Splash").[c101].Value
End With
End Sub
_________________ Cheers, NateO ![]() [ This Message was edited by: nateo on 2002-05-09 11:18 ] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|