+ Reply to Thread
Results 1 to 2 of 2

VBA to copy certain columns to all worksheets

  1. #1
    Registered User
    Join Date
    03-03-2020
    Location
    Kazakhstan
    MS-Off Ver
    10
    Posts
    3

    Question VBA to copy certain columns to all worksheets

    Hi I'm looking to create code for copying certain columns (C to AT) from Sheet1 across all worksheets then skipping worksheets named "Sheet1"

    I know that I need to use PasteSpecial method, but I'm having troubles with loop.

    Worksheets("Sheet1").Range("A2").Copy
    Worksheets("Sheet2").Range("A2").PasteSpecial Paste:=xlPasteFormulas

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: VBA to copy certain columns to all worksheets

    Hi there,

    See if the following code does what you need:

    Please Login or Register  to view this content.
    As per the code you posted, the above code will paste the value of Cell A2 to all of the other worksheets. You can use a similar approach to paste all/part of a column.

    The highlighted values may be altered to suit your requirements.


    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

+ 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 between worksheets but only until last row
    By ihb95 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-29-2019, 08:00 AM
  2. [SOLVED] Copy Columns to new created worksheets (with 3 fixed columns)
    By DHDan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-10-2019, 05:40 PM
  3. Copy Columns between Worksheets (keeping fomulas)
    By wizzz_wizzz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-03-2018, 01:23 AM
  4. Copy Multiple Worksheets into new columns
    By Edwardanson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-29-2013, 09:11 PM
  5. How to copy Non adjacent columns from many worksheets
    By para quality in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-30-2009, 07:14 AM
  6. How do I copy columns between worksheets if the columns don't matc
    By Miriam in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-12-2006, 11:35 AM
  7. Replies: 2
    Last Post: 12-28-2005, 04:45 PM

Tags for this Thread

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