Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
question about scrollbars and embedded charts
Hello Excel Newsgroup,
I've been trying to place some scrollbars inside an embedded chart on a worksheet. I can't seem to do this with the scrollbar from the Control Toolbox toolbar, but I can from the Forms toolbar. Based on previous experiences with the performance of scrollbars, I think the Control Toolbox version is the one that I ought to be using. Is there some reason why they cannot be placed inside an embedded graph, or on a graph sheet for that matter? Thanks, Brian Murphy Austin, Texas |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
question about scrollbars and embedded charts
I think the reason is just because MS didn't design excel that way.
Brian Murphy wrote: Hello Excel Newsgroup, I've been trying to place some scrollbars inside an embedded chart on a worksheet. I can't seem to do this with the scrollbar from the Control Toolbox toolbar, but I can from the Forms toolbar. Based on previous experiences with the performance of scrollbars, I think the Control Toolbox version is the one that I ought to be using. Is there some reason why they cannot be placed inside an embedded graph, or on a graph sheet for that matter? Thanks, Brian Murphy Austin, Texas -- Dave Peterson |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
question about scrollbars and embedded charts
Well, I suppose you are confirming that Control Toolbox scrollbars can not be put inside a chart.
I was hoping it was because there was something I was doing wrong. Please correct me if this is not right. Thanks, Brian "Dave Peterson" wrote in message ... I think the reason is just because MS didn't design excel that way. Brian Murphy wrote: Hello Excel Newsgroup, I've been trying to place some scrollbars inside an embedded chart on a worksheet. I can't seem to do this with the scrollbar from the Control Toolbox toolbar, but I can from the Forms toolbar. Based on previous experiences with the performance of scrollbars, I think the Control Toolbox version is the one that I ought to be using. Is there some reason why they cannot be placed inside an embedded graph, or on a graph sheet for that matter? Thanks, Brian Murphy Austin, Texas -- Dave Peterson |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
question about scrollbars and embedded charts
I don't think you are doing anything wrong (well, in excel anyway!).
I think your conclusion is accurate. "Brian Murphy" wrote in message ... Well, I suppose you are confirming that Control Toolbox scrollbars can not be put inside a chart. I was hoping it was because there was something I was doing wrong. Please correct me if this is not right. Thanks, Brian |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
question about scrollbars and embedded charts
Thanks, Dave. I will pursue the Forms version.
Here's something strange. I'm finding that to programmatically change the properties of a Forms scrollbar, I have to "Select" it first, and then use Selection.whatever. All other ways I've tried give a r/t error. Brian "Dave Peterson" wrote in message m... I don't think you are doing anything wrong (well, in excel anyway!). I think your conclusion is accurate. "Brian Murphy" wrote in message ... Well, I suppose you are confirming that Control Toolbox scrollbars can not be put inside a chart. I was hoping it was because there was something I was doing wrong. Please correct me if this is not right. Thanks, Brian |
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
question about scrollbars and embedded charts
You can get it by going through the chart:
Option Explicit Sub testme() Dim mySB As ScrollBar With Worksheets("sheet1").ChartObjects(1) Set mySB = .Chart.ScrollBars("scroll bar 1") With mySB .LargeChange = 10 .SmallChange = 1 .Min = 8 .Max = 100 .LinkedCell = Worksheets("sheet1").Range("a1") _ .Address(external:=True) End With End With End Sub If you know your chart is active: With ActiveChart Set mySB = .ScrollBars("scroll bar 1") Brian Murphy wrote: Thanks, Dave. I will pursue the Forms version. Here's something strange. I'm finding that to programmatically change the properties of a Forms scrollbar, I have to "Select" it first, and then use Selection.whatever. All other ways I've tried give a r/t error. Brian "Dave Peterson" wrote in message m... I don't think you are doing anything wrong (well, in excel anyway!). I think your conclusion is accurate. "Brian Murphy" wrote in message ... Well, I suppose you are confirming that Control Toolbox scrollbars can not be put inside a chart. I was hoping it was because there was something I was doing wrong. Please correct me if this is not right. Thanks, Brian -- Dave Peterson |
#7
Posted to microsoft.public.excel.programming
|
|||
|
|||
question about scrollbars and embedded charts
Thanks again, Dave.
I think I was trying to do it like: With Activechart.Chart.ScrollBars("scroll bar 1") I don't think I tried a Set statement. I will give it a try, since I don't really want to Select the thing. Brian Dave Peterson wrote in message ... You can get it by going through the chart: Option Explicit Sub testme() Dim mySB As ScrollBar With Worksheets("sheet1").ChartObjects(1) Set mySB = .Chart.ScrollBars("scroll bar 1") With mySB .LargeChange = 10 .SmallChange = 1 .Min = 8 .Max = 100 .LinkedCell = Worksheets("sheet1").Range("a1") _ .Address(external:=True) End With End With End Sub If you know your chart is active: With ActiveChart Set mySB = .ScrollBars("scroll bar 1") |
#8
Posted to microsoft.public.excel.programming
|
|||
|
|||
question about scrollbars and embedded charts
You could have used:
With Worksheets("sheet1").ChartObjects(1).Chart.ScrollB ars("scroll bar 1") instead of: With Worksheets("sheet1").ChartObjects(1) Set mySB = .Chart.ScrollBars("scroll bar 1") With mySB Brian Murphy wrote: Thanks again, Dave. I think I was trying to do it like: With Activechart.Chart.ScrollBars("scroll bar 1") I don't think I tried a Set statement. I will give it a try, since I don't really want to Select the thing. Brian Dave Peterson wrote in message ... You can get it by going through the chart: Option Explicit Sub testme() Dim mySB As ScrollBar With Worksheets("sheet1").ChartObjects(1) Set mySB = .Chart.ScrollBars("scroll bar 1") With mySB .LargeChange = 10 .SmallChange = 1 .Min = 8 .Max = 100 .LinkedCell = Worksheets("sheet1").Range("a1") _ .Address(external:=True) End With End With End Sub If you know your chart is active: With ActiveChart Set mySB = .ScrollBars("scroll bar 1") -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel 2007 Embedded Charts | Charts and Charting in Excel | |||
Print embedded charts from several sheets | Charts and Charting in Excel | |||
embedded charts | Charts and Charting in Excel | |||
How do I print a worksheet with embedded charts? | Charts and Charting in Excel | |||
Using Events with Embedded Charts | Excel Programming |