+ Reply to Thread
Results 1 to 3 of 3

Multiple non-contiguous columns

  1. #1
    Registered User
    Join Date
    11-20-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    24

    Multiple non-contiguous columns

    Thank you for taking the time to review this thread. I searched for threads that match my problem and could not find anything.

    I am trying to setup a chart that draws data from a spreadsheet that has multiple columns. I want to put column A in every chart. The next step is to add columns from the spreadsheet, in one case the two columns are right beside the "A" column- "B and C". In other cases the additional columns will be "D and E", "F and G", etc.
    I activate the sub by clicking on a column header on the spreadsheet. In the code below I'm trying to use the "Union" function but to no avail. I can't even get the sub to chart columns without using the "Union" function. The line that is causing me the grief is prefixed by "****".
    The spreadsheet that holds the chart and the data source is attached.
    I am open to any solution that will create the desired chart. I apologize for the sloppy coding, I'm not that well versed in VBA codi
    Thank you for taking the time to read my issue.


    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by mlafrance; 05-14-2017 at 01:10 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Multiple non-contiguous columns

    Please note that your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Multiple non-contiguous columns

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    http://www.excelguru.ca/forums/showt...tiguous-ranges

+ 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. Printing multiple non-contiguous columns from a worksheet?
    By Dennis Blewett in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-16-2015, 05:26 AM
  2. Copy contiguous columns and paste as non-contiguous
    By absconditus in forum Excel General
    Replies: 1
    Last Post: 12-29-2014, 03:17 AM
  3. [SOLVED] VBA Find LastRow Of Multiple Non Contiguous Columns On One SHeet
    By hobbiton73 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-08-2014, 01:20 PM
  4. [SOLVED] How to sum non-contiguous columns applied as a formula on contiguous cells
    By figo12 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-09-2013, 01:07 PM
  5. [SOLVED] How to delete multiple contiguous (and/or) non-contiguous rows, in an excel table
    By jimmalk in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-03-2012, 05:48 AM
  6. Replies: 0
    Last Post: 08-03-2012, 04:31 PM
  7. [SOLVED] Copying non-contiguous columns to contiguous columns
    By Bob in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-09-2006, 10:54 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