Reading Header information into a cell
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 4 of 4

Thread: Reading Header information into a cell

  1. #1
    New Member
    Join Date
    Mar 2002
    Location
    Texas
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    Is it possible to read header information into a cell?
    For example, 5 sheets, each with a date. I want to be able to read the date off of each one into a cell on a 6th sheet..
    _____________
    'Hey, you deal with the particulars, I'll deal with the specifics.'
    sayings and fragments, xxii
    ban-chan.

    [ This Message was edited by: grasshoffer on 2002-03-22 13:20 ]

  2. #2
    MrExcel MVP Al Chara's Avatar
    Join Date
    Feb 2002
    Location
    Newark, Delaware
    Posts
    1,701
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    How about the following code:

    Dim i As Integer
    For Each ws In Worksheets
    i = i + 1
    If ws.Name <> Worksheets(6).Name Then Worksheets(6).Range("a" & i).Value = Worksheets(i).PageSetup.CenterHeader
    Next ws

    It places the value of the center header of worksheets 1-5 into cells in column A starting with A1 of worksheet 6
    Best regards,
    Allan Chara
    http://www.mrspreadsheets.com

  3. #3
    New Member
    Join Date
    Mar 2002
    Location
    Texas
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Great help! This will work quite nicely. I know Excel pretty well, but not much programming beyond cell formulas. What sort of resources do you use [or did you use] to learn the programming of Excel, specifically. Any resource suggestions?

  4. #4
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Bogota, Colombia
    Posts
    11,959
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    This board in particular.
    Online help
    Particular cases.
    Practice
    Practice
    Practice

    Regards,

    Juan Pablo González
    http://www.juanpg.com

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 

 
DMCA.com