From the course: Excel VBA: Managing Files and Data
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Delete a sparkline - Microsoft Excel Tutorial
From the course: Excel VBA: Managing Files and Data
Delete a sparkline
- Sparklines which summarize data within a worksheet, use a Word-like representation to summarize data visually. However, you might want to get rid of them, for example, to delete them and later replace them within a dashboard worksheet. In this movie, I will show you how to delete a sparkline in Excel VBA. My sample file is "0508 Delete Sparkline" and you can find it in the Chapter 5 folder of the "Exercise files" collection. The sparkline I want to work with is in Cell E1, and it is a win-loss sparkline that summarizes the data, positive, negative or zero, from Cells B2 through B8. If I want to delete the sparkline in Cell E1, I can do so using VBA, so I'll press Alt+F11, and here I have a subroutine called "Delete Sparkline", and my comment reminds me of the target cell address. To delete a sparkline, you need to do two things, you need to select the cell that contains it, and then you need to clear the sparkline groups…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
Create a chart5m 1s
-
(Locked)
Move a chart to a chart sheet3m 49s
-
(Locked)
Add or remove data series from a chart5m 48s
-
(Locked)
Export a chart as an image4m 3s
-
(Locked)
Create a line sparkline3m
-
(Locked)
Create a column sparkline3m 25s
-
(Locked)
Create a win/loss sparkline4m 34s
-
(Locked)
Delete a sparkline2m 12s
-
(Locked)
-
-
-