Charts and combo box in excel 2007
Hey all, this is something I really want to do but just don't know how.
I have a combo box, if I select something from the list it will automatically show the relevant graph, this works for everything in my list.
I have all the data for the graphs in othe sheets within the workbook, what I want to do is when the user selects something from the list I want it to show a selection of data from the graphs in h25: k50.
This is something i have been wanting to do for ages!!
Please see the link for the example of what i am trying to achieve.
Solutions to the Problem Charts and combo box in excel 2007
Try this code:
Private Sub Combo1_Change()
Dim cht As ChartObject
Dim ser As Series
Dim strSheet As String
Dim wsh As Worksheet
Dim strFormula As String
Dim strRange As String
Dim col3 As Long
Dim rng As Range
For Each cht In ActiveSheet.ChartObjects
cht.Visible = False
Set cht = ActiveSheet.ChartObjects(Combo1.Text)
cht.Visible = True
Range("H22") = cht.Chart.ChartTitle.Caption
Set ser = cht.Chart.SeriesCollection(1)
strFormula = ser.Formula
strRange = Split(strFormula, ",")(1)
strSheet = Replace(Split(strRange, "!")(0), "'", "")
strRange = Split(strRange, "!")(1)
Set rng = Worksheets(strSheet).Range(strRange)
Select Case Combo1.Text
Case "Referring Sites"
col3 = 12
Case "Top Traffic Sources"
col3 = -1
col3 = 8
Case "Adwords Keyword ECR"
col3 = 3
Case "New Visits vs Returning"
col3 = -1
Case "Region Visitors"
col3 = -1
If col3 > 0 Then
Range("K24") = "Revenue"
rng.Offset(0, col3 - 1).Copy
Range("K24") = ""
This particular error can easily be resolved with a few simple steps. However, if you are not confident in your ability to use the methods below or they do not fully remove the issue on your computer, you may want to seek the assistance of a qualified repair technician who is well versed in fixing Charts and combo box in excel 2007.
- Back-up the Registry of your operating system.
- Find the Registry Key: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade]
- Note: this Registry Key should already exist, if it does not exist, create it.
- Create a brand new DWORD Value that is named AllowOsUpdate
- Set the Value to 0x00000001.
- Close and reopen your Control Panel.
- Restart the Microsoft Windows.
Recommended Method to Fix the Problem: Charts and combo box in excel 2007:
How to Fix Charts and combo box in excel 2007 with SmartPCFixer?
1. Click the button to download Error Fixer . Install it on your computer. Open it, and it will scan your system. The errors will be shown in the scan result.
2. After the scan is finished, you can see the errors and problems which need to be repaired.
3. When the Fixing part is finished, your computer has been speeded up and the errors have been removed
Related: How Can You Update & Download Toshiba Satellite 5105-S501 Intel PRO 10/100 Driver v.126.96.36.199,How to Update & Download Toshiba Satellite C655D-S5139 BookPlace v.2.2.7530 driver,Method to Update & Download Toshiba Satellite L655-S5073 Realtek Wireless LAN Driver v.2.00.0011,Method to Update & Download Toshiba Satellite L840-ST2N01 Sleep Utility v.1.4.0022.000104 driver,Best Way to Update & Download Toshiba Satellite Pro S300-EZ2502 Extended Tiles for Windows Mobility Center v.1.01 driver,Best Way to Download NVidia GeForce 6100 VGA Driver v.304.51 Certified,How Can You Update & Download NVidia GeForce 9300/nForce 730i VGA Driver v.310.19 Certified,Method to Download NVidia GeForce GT 330M Driver v.340.65,How Can I Update & Download NVidia GeForce GTX 590 Driver v.280.26 WHQL,Method to Download NVidia Tesla C2050 Driver v.319.17,Way to Download RealTek RTL8100C(L) Driver v.5.01,Way to Download RealTek RTL8100E Drivers v.694,Way to Update & Download RealTek RTL8101L Auto Installation Program v.6.110 driver,Method to Update & Download RealTek RTL8111G PXE and RPL ROM code v.2.58 driver,How to Update & Download RealTek RTL8411B(N) Driver v.10.003,Best Way to Update & Download ASUS A53SV nVidia Graphics Driver v.188.8.131.5286,Method to Herunterladen ASUS K75VJ Intel Rapid Storage Technology Treiber v.184.108.40.2060,How Can You Update & Download ASUS CG8580 Intel Chipset Driver v.220.127.116.119,Method to Update & Download ASUS K41VD Intel INF Update Driver v.18.104.22.1685,Way to Update & Download ASUS Pro70T NB Probe v.3.0.0026 driver,Can't Download PP Templates Automatically To Windows 7 W/IE 8,Can't Change Drive Letter - Vista,Can't Change Homegroup Sharing Permission,Can't Connect XP Shared Printer To Win7 Except As A Local Printer.__,Can You Connect The LAN Adapter For Wii On Your Windows 7 Laptop?
Read More: class not registered message when trying to download free fonts Tech Support,How Can I Fix - Certificate errors?,Troubleshoot:cant send photos to www.nlop players.com or http://www.mixed venue poker.com/index.php please fix,Check Box Content Control & Outlook Web App Tech Support,Fast Solution to Problem: Changing color of shape to red, green, yellow on click in VBA,Can't access c drive to open programs.,Can you use just one hard drive to store a backup disk image and restore for multiple computers?,can not install Mcafee due to Java script error,,Can Word's track changes comments print in the outside border?,cannot install old software program because computer missing indeo codec driver