If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > chart and userform

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-17-04, 15:08
Alexxx12 Alexxx12 is offline
Registered User
 
Join Date: Sep 2002
Location: NJ
Posts: 139
chart and userform

Hi,

Is there a way to build a chart in excel but make it appear only on a userform instead of the sheet? If so, then what are the basic steps?

Scenario:

Userform1
two buttons
one: OK
two: UserCharts
I click on UserCharts and the chart appear on the userform based on stats picked up from sheet5 in excel

If not, then how can I add a button on the chart itself that will, upon being clicked on, disappear and bring the userform back?

Thank you for help in advance and thank you to all who have helpped me so far. you guys are supper!

Alexxx
Reply With Quote
  #2 (permalink)  
Old 08-18-04, 06:59
Mowgli212001 Mowgli212001 is offline
Registered User
 
Join Date: Feb 2004
Location: Swindon, UK
Posts: 86
I don't think it is possible to add a chart on a UserForm. What you could try is having it so. when you click the button on the UserForm, it closes the form and goes to the sheet with the chart, then having a button on the chart sheet that re-opens the UserForm. this is the code.

'Code to open UserForm
Sub Button1_Click()
UserForm1.Show
End Sub

'Code behind UserForm to show chart
Private Sub CommandButton1_Click()
UserForm1.Hide
Sheets("Chart1").Select
End Sub
__________________
"Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done."
Reply With Quote
  #3 (permalink)  
Old 08-18-04, 17:35
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
Yes, you can put a chart in a UserForm. Check out this:

http://j-walk.com/ss/excel/tips/tip66.htm
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
  #4 (permalink)  
Old 08-21-04, 10:44
Alexxx12 Alexxx12 is offline
Registered User
 
Join Date: Sep 2002
Location: NJ
Posts: 139
charts and userform

Hi,

I added a chart in your application, but it is not displayed. Did you hide the code behind the View Chart Button? If so, would you be kind enough to share it, I am a student of excel and I need all the tip I can get.
Reply With Quote
  #5 (permalink)  
Old 08-22-04, 10:58
Alexxx12 Alexxx12 is offline
Registered User
 
Join Date: Sep 2002
Location: NJ
Posts: 139
I got it

Disregard my last message. I got it!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On