+ Reply to Thread
Results 1 to 3 of 3

Select range based off column name

  1. #1
    Registered User
    Join Date
    08-08-2015
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    3

    Select range based off column name

    I want to make a scatter plot. Every column is named in the first row. So I coded two classes. One that finds the column number where the name (string) is located and one that creates the chart. The following code does not work and I cant figure out why. I get no runtime errors the graph is generated but with no series. ANy ideas?

    Please Login or Register  to view this content.
    Last edited by randomonium; 08-10-2015 at 11:39 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Select range based off column name

    how is: Sub CreateChart(var As String, var2 As String, var3 As String) being called? How are the var-x's being passed to it?
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    08-08-2015
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    3

    Re: Select range based off column name

    It is triggered when the user presses a button. I tested the FindColumn with a MsgBox and it is working fine (returning the correct int for the column name)

    Please Login or Register  to view this content.
    Last edited by randomonium; 08-11-2015 at 07:41 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Code to select dynamic range based on value in column A
    By tompee29 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2015, 05:28 AM
  2. [SOLVED] Select to the end of a row based on used column range
    By BrownBoy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-20-2014, 02:14 PM
  3. Select Range In Column Based On Two Different Cells
    By Regular_Joe in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 05-30-2014, 11:47 AM
  4. Range Select Based on Column Header
    By Nospmas in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-24-2013, 11:27 AM
  5. Select Range based on data in different column
    By Jonathan78 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-24-2012, 09:10 AM
  6. [SOLVED] How to select a range based on values in 1 column
    By ForestRamsey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-30-2005, 12:05 PM
  7. Select cells based on named Range and a column heading
    By achidsey in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-11-2005, 11:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1