VBA to add data to a Chart

Ezguy4u

Active Member
Joined
Feb 10, 2010
Messages
270
Office Version
  1. 2019
Platform
  1. Windows
I need a VBA code that will select just data. Right now when I try and select just cells with numbers, the code also selects the cells with formulas too. Also the fact the data is horizontal and not vertical, doesn't help either. But this is the set up. I a going to say the code should be dynamic in that the code will adjust as I add more data. I hope this is clear enough. If it isn't, at least it's a start.



Mr Excel 1.xlsx
ABCDEFGHIJKLM
1datePrice 1Price 2Price 3Price 4Price 5datePrice 1Price 2Price 3Price 4Price 5
2Mar-16101418  Mar-16101418
3Jun-16111519  Jun-16111519
4Sep-16121620  Sep-16121620
5Dec-16131721  Dec-16131721
Sheet1
Cell Formulas
RangeFormula
A2:F5A2=IF(H2="","",H2)



1616652645092.png
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Forum statistics

Threads
1,176,255
Messages
5,902,166
Members
434,945
Latest member
ngabrieln

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
Top