I am adding sparklines to help show trends easily. However, the client does not want to see all of the data next to the sparklines. Is there a way to specify to show the sparklines in a separate sheet from where the data is stored.
ie. data is in Sheet1. Show the data in Sheet2.
This is the base code for creating the sparklines in the Active sheet.
ie. data is in Sheet1. Show the data in Sheet2.
This is the base code for creating the sparklines in the Active sheet.
Code:
'Create the sparklines.
Range(Cells(2, LastCol+1), Cells(LastRow, LastCol+1)).Select
Selection.SparklineGroups.Add Type:=xlSparkLine, _
SourceData:=Range(Cells(2, 2), Cells(LastRow, LastCol)).Address