+ Reply to Thread
Results 1 to 4 of 4

Need VBA to split data into multiple sheets paste formulas, formatting AND data validation

  1. #1
    Registered User
    Join Date
    11-25-2024
    Location
    US
    MS-Off Ver
    2017
    Posts
    2

    Need VBA to split data into multiple sheets paste formulas, formatting AND data validation

    Cross-posted at https://www.mrexcel.com/board/thread...ation.1267167/

    Hello!
    I am using the following VBA code to split data into multiple sheets based on a value in a column of the "Master sheet". I need it to paste formulas, formatting AND data validation into the newly created sheets. However; the existing code is only pasting/copying formulas and formatting, NOT data validation.
    I tried adding .PasteSpecial xlPasteValidation after .PasteSpecial xlPasteFormats but that didn't work, it caused the new worksheets to all be blank.

    can anyone help please?
    Please Login or Register  to view this content.
    Last edited by 6StringJazzer; 11-25-2024 at 01:14 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,822

    Re: Need VBA to split data into multiple sheets paste formulas, formatting AND data valida

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not told us about this. You are required to do so. Cross-posts are allowed but you must provide a link to your posts on other sites.
    For new members: you will not be able to post a full URL, so remove the https://www. section and add one or two breaks to the rest of the address. A Moderator or Admin will then fix the link for you.

    Please see Forum Rule #7 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important: https://excelguru.ca/a-message-to-forum-cross-posters/

    I have added the link to your post because it's your first post.

    Administrative Note:

    We recommend that you include code tags around your code.

    Please take a moment to add the tags. 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, and it also maintains VBA formatting.

    Please see Forum Guideline #2 about code tags and adjust accordingly. Click on Edit to open your post, 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.

    I have done this for you because it's your first post.

    We advise reading the rules of this and any forum when you join.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    11-25-2024
    Location
    US
    MS-Off Ver
    2017
    Posts
    2

    Re: Need VBA to split data into multiple sheets paste formulas, formatting AND data valida

    I figured it out! I just needed to add .PasteSpecial xlPasteValidation BEFORE .PasteSpecial xlPasteFormulas
    thanks anyway! Not sure how to mark this SOLVED

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,822

    Re: Need VBA to split data into multiple sheets paste formulas, formatting AND data valida

    Go to the menu immediately above your first post to the thread and click on Thread Tools. From the dropdown menu select "Mark this thread as solved..."

+ 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. VBA to Split data into multiple sheets
    By Bimmer318i in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-06-2021, 07:08 AM
  2. View Data from multiple sheets to just one sheet by Data validation
    By markusvirus in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-14-2017, 01:35 AM
  3. [SOLVED] Split Data from one sheet into multiple sheets
    By jstewart22 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-11-2013, 06:54 PM
  4. [SOLVED] Data Validation - replace choices for multiple sheets of source data
    By mshaw1970 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-20-2013, 07:34 AM
  5. [SOLVED] Split data in one worksheets into multiple sheets?
    By cahillct in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-14-2012, 07:51 AM
  6. [SOLVED] Question About IF/THEN with Data Validation AND multiple cell data paste
    By erynatpitt in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-10-2012, 03:57 PM
  7. Split Data to multiple Sheets
    By georgeanaprop in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-15-2010, 08:52 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