I'm trying to allow a user to chose from four different variables through combo-boxes as their Y and X coordinates to be displayed in a scatter plot. I'm able to populate the combo-boxes but don't know where to go from there to apply this to a chart.
I have various charts others view and require the data range to change in 12 month intervals, ie Jan07 -Jan08, Feb07-Feb08. I currently move the ranges manually every month but find the it would be more interactive for others if a drop down combo box on the chart were used enabling the user to choose which intervals to view.
I know this has been discussed a number of times, but here is my problem I have three charts in my workbook. I want to attach a macro so that when the chart is clicked it returns to Sheet - Home. I have using the following: worksheets("Home").activate. But after I protect each chart and the workbook, and save and exit. When I reload the Workbook it has forgotten the assigned macros and nothing happens.
I am trying to set up a combo box in my workbook so that when the item is selected from the list a particular macro will run according to the selection. I tried with the following codes but wonder why it is not executing when running the macro.
Option Explicit Sub COUNTRYCURR2() Dim shtInv As Worksheet Dim shtT_Country As Worksheet Dim Row As Long Dim Row2 As Long Dim lngEndRowInv As Long Dim lngT_Country As Long Set shtInv = Sheets("Inventory") Set shtT_Country = Sheets("T_Country") lngEndRowInv = shtInv. Range("A" & Rows.Count).End(xlUp).Row lngT_Country = shtT_Country.Range("A" & Rows.Count).End(xlUp).Row shtInv.Cells(1, 19).Value = "Country Code" shtInv.Cells(1, 20).Value = "Currency Code".................
i need is a macro that once run selects a certain (or multiple) comboboxe's values. Eg I select macro 'test' and it selects value 1 on combo box 1, value 2 on combo box 2 etx..?
I'd like to use a button to run a macro that inserts a combo box, but can't seem to change the properties of that box within the macro. For example, I need to enter the linked cell, but when I run the macro, the actions in the combo box's properties dialogue don't record (I'm not familar with visual basic, so I'm 'recording' the macro).
I have created a combo box and have inputted the values
Jan, Feb, Mar (think you get the idea).... Dec
I am looking to assign a macro to each value so that each one shows a graph, i have already created the macro’s to show the graphs. Just unsure how to make them work with the combo box
I need a macro to search for certain info on different sheets combine them and place it on a Report sheet. This is extensive and complicated so it would be easier if I emailed the .xls file
If you think you can help, let me email you the file.
I have a combo box in a worksheet with a macro written for it that works fine but when I open the worksheet it doesn't run automatically, I have to find the macro and tell it to run.
How can I get it to run as soon as the worksheet is opened
Run "PinchInternHeatExchanger" Select Case ComboBox1.Text Case "Mit Rekuperator" ActiveSheet.Range("I62") = Worksheets("uorc").Range("L99") Case "Ohne Rekuperator" ActiveSheet.Range("I62") = Worksheets("uorc").Range("E11") End Select Run "PinchPoint" End Sub
Ive got a cell on a worksheet, that is controlled by a Control combo box. Is there anyway to change the value of the cell, and therefore the combo box, by using a macro. I need the macro to activate when the workbook is exited.
I am trying to create a menu that calls macros based on your choice using a drop down combobox (from the control toolbox). Everything works except: When i try to reset the drop down to "Main Menu" using the Linked cell $B$1 excel hangs and suts down evertime. What i would like it to do is reset the drop down to "Main Menu" each time one of the other drop downs are selected. I have really enjoyed this forum and it has been a great resource for me in the past I hope someone can help. I have attaching the file for review.
I have two combo boxes that both contain 7-12 separate search criteria for the user to choose from. The other includes months and the other value ranges in text form. Based on the selections, e.g. "August" from other and "increased by more than 5 %" from other, I'd like to have a command button to execute the appropriate macro. I've already compiled the macros for each occasion but I just can't figure out how to get the button to execute them. Can I use the Select Case statements? If so, how?
Oh, and whether it's relevant or not, the boxes and the button are from the control toolbar.
I have to create two combo boxes and when a user selects a value from one combo box, the values should get changed in the other combo box.
For example : if one combo box has values like "c/c++ programming" "java programming" and so on.. ... i would like to display the authors recommended (corresponding to combo box1) in the combo box 2.
In Excel 2007, I'm writing a macro to create several charts (column) that need to match what a designer has already built. I'm having a devil of a time finding the code I need to create parts of the chart. I've searched the web and this forum, but I must just not be asking the right things.
I can see everything I want to do in the format pop-up window when I right click on the charts in Excel, here is the path:
1) Format Minor Gridlines, Line Style, Dash Type, Rounded Dot 2) Format Axis, Axis Options, Major tick mark type, None 3) Format Axis, Axis Options, Position Axis, Between tick marks
I have a spreadsheet with a massive amount of data in it. I have this information displayed as a graph in the sheet "Chart2". I want to be able to scroll my chart scale minimum and maximum to either side with buttons "Button1" and "Button2" located on that chart, and to be able to change the width of the graph by increasing or decreasing the chart scale maximum. This may be a bit of a newbie question, but I haven't dealt with charts at all yet.
I'm not too familiar with VB, and I'm trying to narrow down why my macro (and how) is creating a second, duplicate chart. I only need the chart to be created (and the corresponding data fields on the 3rd worksheet) once.
I am trying to figure out how to activate a macro from each item in a drop down list. I also need the macro to recognize which item is chosen and to use that items data (say cells C3:C11) to create its graph. I know how to create an individual macro that will create a graph for the item but not a general macro that can be used to graph all items just discerning the difference in where the data is (which item to graph). Is this possible????if so please include code (amatuer programmer).
I have a code for auto scaling charts, but I'm looking for a slight tweak to improve its performance. Here is the code:
Public Sub ChartScale()With ActiveChart.Axes(xlValue).MinimumScale = Range("J152").MaximumScale = Range("J153")End WithEnd Sub (where J152 and J153 are the cells being used to scale the chart)
What happens is that I create a macro button, and then have to select a specific chart, then press the button to scale it. I have 2 main questions I'm trying to have answered to improve this process:
1) Is there a way to make this process automatic (i.e. no button press required)? The chart would autoscale automatically upon the min and max number changing.
2) And more importantly, can I specify the macro to an individual chart instead of the active one? For example, I'd like 4 charts on one sheet to all have their own auto scaling being performed. So, in the above code, the chart uses cells J152 and J153 for the scaling. I'd like the others to use other cells for the scaling. Cells J152 and J153 would auto scale chart "Name 1", cells K152 and K153 would autoscale Chart "Name 2", and so forth for 4 charts.