Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Groubas

    Copy chart from one sheet to another

    Ok thanks Skip, that looks good, but I wonder wouldnt I get a problem when I repeat the program and the second chart will be no 2 and so on... I mean since the code alignes ChartObject 1?
  2. Groubas

    Number of chart values depending on number of populated rows in listbx

    Heres the code that works: Sub plotChart() Dim chartEnd As Long chartEnd = Me.lstCoords.ListCount With ThisWorkbook.Sheets("TempData") .ChartObjects("Diagram 20").Chart.SeriesCollection(1).XValues = .Range(.Cells(1, 1), .Cells(chartEnd, 1)) .ChartObjects("Diagram...
  3. Groubas

    Copy chart from one sheet to another

    Could anyone help me with this one? I want to copy a chart from one sheet to another. Now I've got this far on my own but its not woking like i want it to Private Sub cbtnPrint_Click() With ThisWorkbook .Sheets("TempData").ChartObjects("Diagram 20").Chart.ChartArea.Copy...
  4. Groubas

    Number of chart values depending on number of populated rows in listbx

    .... right, but if I showed the doctor all my values and told him about my problem them Im sure he would know whats wrong... that is if he would be a real doctor anyway I showed the code to others and they knew right away whats wrong with it so the problems solved.
  5. Groubas

    Number of chart values depending on number of populated rows in listbx

    Skip> The code that you posted didnt work at all and regarding your last question - If I knew I wouldn't post this thread, would I?
  6. Groubas

    Number of chart values depending on number of populated rows in listbx

    I have no idea what's in your listbox." the listbox contains the same values as the fist two columns in the worksheet and no I havent tried it yet
  7. Groubas

    Number of chart values depending on number of populated rows in listbx

    ... but ill try your code as soon as i get to work tomorrow. anyway, thank you!
  8. Groubas

    Number of chart values depending on number of populated rows in listbx

    isnt that the same code that i posted? The listbox is still populated after i copy all the values to the worksheet so chartEnd = Me.lstCoords.ListCount should generate the same value as chartEnd = .Cells(.cells.rows.count, 1).end(xlup).row isn't that right?
  9. Groubas

    Number of chart values depending on number of populated rows in listbx

    its a xy-scatter chart (as you can se by the code). the user only enters the first two columns (x and y) the following columns are counted by the program. The program is more than 1500 rows so It would take too long to explain it all. The basic thing is that the values are now in the worksheet...
  10. Groubas

    Number of chart values depending on number of populated rows in listbx

    Im not sure what that has to do with this problem? could you explain?
  11. Groubas

    Number of chart values depending on number of populated rows in listbx

    ok, the user adds values to a listbox in the userform where the values are sorted like i want them, then by pressing a "plot"-button the values are copied to a worksheet and from there they are used to plot the chart. this is why I set chartEnd=listcount
  12. Groubas

    Number of chart values depending on number of populated rows in listbx

    I have the chart and program at work so I cant check that right now, but im quite sure that the ranges are defined... is that a problem?
  13. Groubas

    Number of chart values depending on number of populated rows in listbx

    Hi Im not quite sure what you mean (Im new at this). Its a user form - a multipage to be specific from the xl visual basic editor. the part when I copy the values from the listbox to a worksheet is already done in the program. The values were added by additem. I want the chart to be plotted...
  14. Groubas

    Number of chart values depending on number of populated rows in listbx

    Hello Ive tried to figure this out but I cant get this to work. The problem is that I want to plot a chart but the number of values varies depending on how many listbox rows that the user has populated. This is my code so far, but it doesnt work: Sub plotChart() Dim chartEnd As Long...
  15. Groubas

    values from listbox, display chart in form

    Thank You Zack That really helped me out G
  16. Groubas

    values from listbox, display chart in form

    Thanks Zack Something similar has crossed my mind... But how do I copy the values from the listbox to the hidden worksheet?
  17. Groubas

    values from listbox, display chart in form

    Im quite new at VBA but I have to solve this. I guess this is a two part question... 1 I want to create a scatter chart but my source data are in a listbox (-devided in two columns). What code should i write to set the listbox columns as source for the chart? 2 Is it possible to display the...

Part and Inventory Search

Back
Top