Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBAcustom footercell ref + font size
I checked some earlier postings, and thought I found some solutions, but I
must still be missing something, because I am getting some funky results. I am attempting to reference a cell value in my footer, which works fine, however, when I try to also set the font name (type) and size, the footer value prints HUGE on my page, like one character across the entire page (at least that what seems to be happening). I can't seem to accomplish both tasks at the same time, but am fairly certain there should be a way. I have tried a number of various lines of code, which are below, and figure I'm just slightly off with my syntax. Any assistance anyone can provide would be appreciated. I have commented them all out while I was testing each one. The first line works, but does not give me the font name/size I want. The next two were meager attempts at an alternate solution, the fourth one is the one giving me the crazy output, and the fifth one gives me the footer, but does NOT seem to give me the font name/size. With ActiveSheet.PageSetup '.LeftFooter = Range("H1").Value '.LeftFooter.Font.Name = Garamond '.LeftFooter.Font.Size = 9 '.LeftFooter = "&9" & Range("H1").Value '.LeftFooter = Range("H1").Value & "&""Garamond,Regular""&9" End With |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel footer default font size | Excel Worksheet Functions | |||
When I change the font size in a cell the value changes. | Excel Worksheet Functions | |||
Can an Excel cell value be used in a Custom Footer? | Excel Worksheet Functions | |||
cell size and font size | Excel Discussion (Misc queries) | |||
Code for Page Footer Font Size | Excel Programming |