Yes, I saw that I was hopeful that it would be possible to use something like Set myChart =UserForm4.ChartObjects.Add(...)
No such luck. Back to the drawing board.
Is it possible to use something like this in a form:
Sub ChartFromArrays()
Dim myChart As Chart
Set myChart = ActiveSheet.ChartObjects.Add(100, 100, 325, 250).Chart
With myChart
.SeriesCollection.NewSeries
.ChartType = xlXYScatterLines
With .SeriesCollection(1)
.Name = "The Series"
.values =...
Skip,
I've tried manipulating the ChartSpace component via VB, but had no luck, I've tried trying to make my worksheet a data source and I've been doing a lot of searching on the Internet.
Thanks,
Jim
I've been googling all morning without any success so I thought I try this forum. I'm trying to add a chart to an excel vb userform. I'd like to have the chart linked to data in a related worksheet so that when the data in the worksheet changed the chart would change too. I've been trying to...
TextMessage is just a module that currently displays a message. msg("it worked"). Just using it as a placeholder until I get the event handler to work.
PH,
Your suggested worked like a charm. Thank you! Now when I run the code the form is created, but the Enter event does not seem to be captured because nothing happens when I tab from text box to text box. Here is the code that I (you) have come up with.
Event Handler Code:
For X = 0 To...
PH,
I am not creating the form dynamically, just some of the elements. Given this fact, I would I hand the TempForm variable. Specifically, When I tried to substitute my user form (UserForm4) in the eventhandler section, I got an error message. See below:
With UserForm4.codemodule
Error...
Hi,
I have an excel userform that dynamically creates some checkboxes based upon data in an excel spreadsheet. Once the form is created, I would like to be able to capture the "Enter" event on the dynamically created text boxes and trigger some additional code. For these purposes we can assume...
I'm trying to write code that displays a message when the user enters a dynamically generated text boxes.
Here's the code I used to generate the text boxes. Does anyone know how I would go about displaying a message when the text box is entered.
For Each Field In prdrng
If...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.