Results 1 to 5 of 5
  1. #1
    4 Star Lounger
    Join Date
    Jan 2001
    Location
    Illinois
    Posts
    552
    Thanks
    0
    Thanked 1 Time in 1 Post

    Changing source in Excel 2003 (excel 2003)

    I have 32 worksheets with 5 charts on each one. All the same kinds of charts. I have 32 source sheets called S1 to S32. The charts are D1 to D32. How can i write a macro to iterate through D2 to D32 and change the sources to the matching data sheet - D1, D2 etc. D1 is the source to the charts on S1. D2 is the source for the charts on S2 and so on. Thank you for the help.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Changing source in Excel 2003 (excel 2003)

    I'm confused by your description:
    First you state that S1 etc. are the source sheets and D1 etc. the chart sheets.
    Then you ask to make D1 the source for the charts on S1 - exactly the reverse.

  3. #3
    4 Star Lounger
    Join Date
    Jan 2001
    Location
    Illinois
    Posts
    552
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Changing source in Excel 2003 (excel 2003)

    oh, sorry. D1 is the source to S1. I'm trying to change the references for all the S1 charts (worksheets S1 to S32) from D1 to D2, D2, D4 etc.

  4. #4
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,853
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: Changing source in Excel 2003 (excel 2003)

    Can you record code of you changing one of the sources?
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  5. #5
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Changing source in Excel 2003 (excel 2003)

    I still don't understand your description, sorry.

Posting Permissions

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