Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8160023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:07:03+00:00 2026-06-06T18:07:03+00:00

I would like to be able to reference the next worksheet in a workbook

  • 0

I would like to be able to reference the next worksheet in a workbook using VBA, but avoid referencing the sheet name as I hope to be able to apply the macro to a number of different workbooks.

I am writing an Excel Macro which is for formatting an excel chart. In the chart’s series title I would like to make the series name reference a cell in the next worksheet.

I have tried the following which is not working:

ActiveChart.SeriesCollection(1).Name = "='ActiveChart.Next.Select'!$B$1"

However this is not working.

What is the most effective way of getting the series name field of a chart to reference a cell in the following worksheet within a macro?

I have also tried the following, which does not work either:

ActiveChart.SeriesCollection(1).Name = "=Sheets(1)!$B$1"

Please bear in mind that this is a workbook which is structured with a chart, then a sheet, chart, sheet and so on…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T18:07:05+00:00Added an answer on June 6, 2026 at 6:07 pm

    You can use this one-liner

    ActiveChart.SeriesCollection(1).Name = "='" & Sheets(ActiveChart.Parent.Parent.Name).Next.Name & "'!B1

    1. Sheets(ActiveChart.Parent.Parent.Name returns the name of the next sheet.
    2. The pair of ' are important to use when referring to sheetnames. i.e. a sheet named My Sheet won’t work as My Sheet!B1, it must be 'My Sheet'!B1
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to be able to reference an array by using a string,
I would like to be able to output the name of a variable, along
The scenario is I would like to be able reference two similar 3rd party
I would like to be able to delete a project reference in a solution
For some reason, i would like to be able to add a reference date,
Would like to be able to set colors of headings and such, different font
I would like to be able to print in the logs a message for
I would like to be able to show a personal message to abusers of
I would like to be able to create a variable that holds an instance
I would like to be able to go: sed s/^\(\w+\)$/leftside\1rightside/ and have the group

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.