Lookatthis123
New member
- Local time
- Today, 03:34
- Joined
- Aug 30, 2007
- Messages
- 7
Hi I was hoping to get some help on some code that will update my scatter plot on click of button on Excel sheet. I'm using Excel 2007. Data is on Pivot Tables and the row range will always change.
Basically I have Scatter plot that collects data from two separate Pivot Tables on two sheets.
one called “customer” and sheet two called “All customers.”
Sample: on each sheet.
X Y
Weight Cost
100 $50
200 $60
145 $45
X is my weight and Y is my Cost
on click code shall go to customers sheet get X (Weight Starts on cell B9) and Y (Cost Starts on Cell D9) find last row in columns update scatter plot then go to All customers sheet get X and Y and update Scatter Plot.
Basically I have Scatter plot that collects data from two separate Pivot Tables on two sheets.
one called “customer” and sheet two called “All customers.”
Sample: on each sheet.
X Y
Weight Cost
100 $50
200 $60
145 $45
X is my weight and Y is my Cost
on click code shall go to customers sheet get X (Weight Starts on cell B9) and Y (Cost Starts on Cell D9) find last row in columns update scatter plot then go to All customers sheet get X and Y and update Scatter Plot.