+ Reply to Thread
Results 1 to 7 of 7

Copy columns to another sheet based on checkboxes

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Copy columns to another sheet based on checkboxes

    Hello everyone
    I am trying to copy columns based on checkboxes on userform ..I have tried to do the task but I had to hard coded it to achieve my task.
    Is there an easy way to do the task without this hard-coding
    Please Login or Register  to view this content.
    I would have more columns and more checkboxes ..so it will be long way
    Hope it is clear
    Attached Files Attached Files
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Copy columns to another sheet based on checkboxes

    Try:
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Copy columns to another sheet based on checkboxes

    Thanks a lot for this great and swift help
    You are wonderful Mr. Olly

  4. #4
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Copy columns to another sheet based on checkboxes

    loop for al controls in userform

    Please Login or Register  to view this content.
    Kind regards
    Leo
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Copy columns to another sheet based on checkboxes

    Thanks a lot for offering help Mr. LeoTaxi
    I tested your file but when I checked "Code", "Natio", "Phone", "Bad2"
    I got "Name", "Salary", "Phone" copied to sheet2 !!

  6. #6
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Copy columns to another sheet based on checkboxes

    wrong way that i used, but you have the good solution from Olly
    so i leave it like it is

    Kind regards
    Leo

  7. #7
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Copy columns to another sheet based on checkboxes

    Mr. LeoTaxi
    your solution is not wrong .. it is working well after removing 1 from this line
    Please Login or Register  to view this content.
    Thanks a lot for offering help
    Best Regards

+ 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. Copy Columns to another sheet based on column heading
    By jhall488 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-05-2014, 03:46 PM
  2. [SOLVED] macro to copy 2 columns to new sheet based on value in a different column
    By excel151515 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-04-2014, 03:17 PM
  3. [SOLVED] Copy and paste columns to another sheet based on a criteria
    By saya_26 in forum Excel General
    Replies: 17
    Last Post: 02-24-2014, 12:23 PM
  4. copy to another sheet using checkboxes WITHOUT macro????
    By nrgreen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-06-2012, 03:44 PM
  5. Copy columns (with formatting) based on data in another sheet
    By jcfransen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-08-2012, 05:53 AM
  6. Copy rows & columns based on the name to another sheet
    By desitracks in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-25-2010, 10:31 AM
  7. [SOLVED] Copy checkboxes to another sheet
    By Trese in forum Excel General
    Replies: 2
    Last Post: 08-04-2005, 09:05 AM

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