How do I modify text via vba to a button on a excel chart

spurs

Active Member
Joined
Oct 18, 2006
Messages
479
Office Version
  1. 2016
  2. 2013
  3. 2010
  4. 2007
  5. 2003 or older
Platform
  1. Windows
I have an excel xy scatter chart in the worksheet "Plot"

Is it possible to create a cell on this plot worksheet where i can enter a value that can be read in by vba code

The plot moves based on the numerical value entered. Currently that value is in another worksheet but i would prefer to enter it on the plot without switching tabs
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Does something like this work? Obviously A2 is just an example.

plot_value = Worksheets("Plot").Range("A2")
 
Upvote 0
Does something like this work? Obviously A2 is just an example.

plot_value = Worksheets("Plot").Range("A2")
I dont follow what you are trying to do

I want some sort of box or cell shown on a chart that allows me to enter a value and then that value will be transferred to another worksheet
 
Upvote 0
That is VBA code that takes whatever you enter on Worksheet Plot, cell A2 and places in a variable called plot_value. You can now use plot_value for whatever you need on whatever worksheet you need to.
 
Upvote 0
That is VBA code that takes whatever you enter on Worksheet Plot, cell A2 and places in a variable called plot_value. You can now use plot_value for whatever you need on whatever worksheet you need to.

The chart "plot" is on its own sheet and is not an embedded object in a worksheet.
How do i add a single cell on that chart which allows me to enter without using a input box type method with a control button initiation. That is too slow
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,695
Members
448,979
Latest member
DET4492

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top