PC Review


Reply
Thread Tools Rate Thread

Can I put something in the footer that reads from the sheet

 
 
Michelle
Guest
Posts: n/a
 
      20th May 2010
Hello, I want the footer in my print-out to pull some information from my
workbook (ideally from a different sheet)

Is this possible?

Thanks

M

 
Reply With Quote
 
 
 
 
Jacob Skaria
Guest
Posts: n/a
 
      20th May 2010
Hi Michelle

You will have to make use of the workbook event...

Set the security level to low/medium in (Tools|Macro|Security). From
workbook press Alt+F11 to launch VBE (Visual Basic Editor). From the left
treeview search for the workbook name and click on + to expand it. Within
that you should see the following

VBAProject(Your_Filename)
Microsoft Excel Objects
Sheet1(Sheet1)
Sheet2(Sheet2)
Sheet3(Sheet3)
This Workbook

Double click 'This WorkBook' and paste the below code to the right code pane.

'Edit sheetname
Private Sub Workbook_BeforePrint(Cancel As Boolean)
ActiveSheet.PageSetup.LeftFooter = Sheets("Sheetname").Range("A1").Value
End Sub


--
Jacob (MVP - Excel)


"Michelle" wrote:

> Hello, I want the footer in my print-out to pull some information from my
> workbook (ideally from a different sheet)
>
> Is this possible?
>
> Thanks
>
> M
>

 
Reply With Quote
 
Michelle
Guest
Posts: n/a
 
      20th May 2010
With hindsight, I realise I shouldn't have posted to the VBA group.

What I really want is a field that I can put into the footer that will just
read from a cell.

something like: &[=sheet1!A1]

is there any such thing?

Cheers

M


"Jacob Skaria" <(E-Mail Removed)> wrote in message
news:2EF89EAC-A69A-4F10-A7A4-(E-Mail Removed)...
> Hi Michelle
>
> You will have to make use of the workbook event...
>
> Set the security level to low/medium in (Tools|Macro|Security). From
> workbook press Alt+F11 to launch VBE (Visual Basic Editor). From the left
> treeview search for the workbook name and click on + to expand it. Within
> that you should see the following
>
> VBAProject(Your_Filename)
> Microsoft Excel Objects
> Sheet1(Sheet1)
> Sheet2(Sheet2)
> Sheet3(Sheet3)
> This Workbook
>
> Double click 'This WorkBook' and paste the below code to the right code
> pane.
>
> 'Edit sheetname
> Private Sub Workbook_BeforePrint(Cancel As Boolean)
> ActiveSheet.PageSetup.LeftFooter =
> Sheets("Sheetname").Range("A1").Value
> End Sub
>
>
> --
> Jacob (MVP - Excel)
>
>
> "Michelle" wrote:
>
>> Hello, I want the footer in my print-out to pull some information from my
>> workbook (ideally from a different sheet)
>>
>> Is this possible?
>>
>> Thanks
>>
>> M
>>


 
Reply With Quote
 
Jacob Skaria
Guest
Posts: n/a
 
      20th May 2010
Sorry.. not possible other than a VBA solution.

--
Jacob (MVP - Excel)


"Michelle" wrote:

> With hindsight, I realise I shouldn't have posted to the VBA group.
>
> What I really want is a field that I can put into the footer that will just
> read from a cell.
>
> something like: &[=sheet1!A1]
>
> is there any such thing?
>
> Cheers
>
> M
>
>
> "Jacob Skaria" <(E-Mail Removed)> wrote in message
> news:2EF89EAC-A69A-4F10-A7A4-(E-Mail Removed)...
> > Hi Michelle
> >
> > You will have to make use of the workbook event...
> >
> > Set the security level to low/medium in (Tools|Macro|Security). From
> > workbook press Alt+F11 to launch VBE (Visual Basic Editor). From the left
> > treeview search for the workbook name and click on + to expand it. Within
> > that you should see the following
> >
> > VBAProject(Your_Filename)
> > Microsoft Excel Objects
> > Sheet1(Sheet1)
> > Sheet2(Sheet2)
> > Sheet3(Sheet3)
> > This Workbook
> >
> > Double click 'This WorkBook' and paste the below code to the right code
> > pane.
> >
> > 'Edit sheetname
> > Private Sub Workbook_BeforePrint(Cancel As Boolean)
> > ActiveSheet.PageSetup.LeftFooter =
> > Sheets("Sheetname").Range("A1").Value
> > End Sub
> >
> >
> > --
> > Jacob (MVP - Excel)
> >
> >
> > "Michelle" wrote:
> >
> >> Hello, I want the footer in my print-out to pull some information from my
> >> workbook (ideally from a different sheet)
> >>
> >> Is this possible?
> >>
> >> Thanks
> >>
> >> M
> >>

>

 
Reply With Quote
 
Michelle
Guest
Posts: n/a
 
      20th May 2010
Thanks Jacob.

M


"Jacob Skaria" <(E-Mail Removed)> wrote in message
news:627D04E5-F623-4B9C-AE3B-(E-Mail Removed)...
> Sorry.. not possible other than a VBA solution.
>
> --
> Jacob (MVP - Excel)
>
>
> "Michelle" wrote:
>
>> With hindsight, I realise I shouldn't have posted to the VBA group.
>>
>> What I really want is a field that I can put into the footer that will
>> just
>> read from a cell.
>>
>> something like: &[=sheet1!A1]
>>
>> is there any such thing?
>>
>> Cheers
>>
>> M
>>
>>
>> "Jacob Skaria" <(E-Mail Removed)> wrote in message
>> news:2EF89EAC-A69A-4F10-A7A4-(E-Mail Removed)...
>> > Hi Michelle
>> >
>> > You will have to make use of the workbook event...
>> >
>> > Set the security level to low/medium in (Tools|Macro|Security). From
>> > workbook press Alt+F11 to launch VBE (Visual Basic Editor). From the
>> > left
>> > treeview search for the workbook name and click on + to expand it.
>> > Within
>> > that you should see the following
>> >
>> > VBAProject(Your_Filename)
>> > Microsoft Excel Objects
>> > Sheet1(Sheet1)
>> > Sheet2(Sheet2)
>> > Sheet3(Sheet3)
>> > This Workbook
>> >
>> > Double click 'This WorkBook' and paste the below code to the right code
>> > pane.
>> >
>> > 'Edit sheetname
>> > Private Sub Workbook_BeforePrint(Cancel As Boolean)
>> > ActiveSheet.PageSetup.LeftFooter =
>> > Sheets("Sheetname").Range("A1").Value
>> > End Sub
>> >
>> >
>> > --
>> > Jacob (MVP - Excel)
>> >
>> >
>> > "Michelle" wrote:
>> >
>> >> Hello, I want the footer in my print-out to pull some information from
>> >> my
>> >> workbook (ideally from a different sheet)
>> >>
>> >> Is this possible?
>> >>
>> >> Thanks
>> >>
>> >> M
>> >>

>>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I put something in the footer that reads from the sheet Michelle Microsoft Excel Discussion 4 20th May 2010 11:47 AM
Can I put something in the footer that reads from the sheet Michelle Microsoft Excel Misc 4 20th May 2010 11:47 AM
Powerpoint presentation that reads from Excel sheet =?Utf-8?B?YWxzdGFs?= Microsoft Excel Programming 0 22nd Dec 2005 02:49 PM
Access: it reads: "Data sheet not updatable =?Utf-8?B?QXJ0?= Microsoft Access Getting Started 6 9th Dec 2005 05:43 PM
page reads/sec vs. disk reads/sec Bob Microsoft Windows 2000 Hardware 1 15th Jul 2003 09:49 PM


Features
 

Advertising
 

Newsgroups
 


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