+ Reply to Thread
Results 1 to 8 of 8

Copy and pasting columns on multiple specific tabs

  1. #1
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Copy and pasting columns on multiple specific tabs

    Good afternoon,

    Currently my below macro is incorrectly copying and pasting column x to column t 7 times on my first tab.
    I Have a workbook with 15 or so tabs.
    I would like for the macro to copy and paste column x to column t one time on each of the below specific tabs:
    CB_A
    CB_B
    CB_C
    CB_D
    CB_412
    CB_617
    CB_618

    HTML Code: 
    Last edited by dosydos; 06-05-2020 at 12:02 PM.
    <----- If you are happy with your solution please click on the "* Add Reputation" as a way to say thank you.

  2. #2
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: Copy and pasting columns on multiple specific tabs

    Hey dosydos,

    So in your 7 specified sheets, in every sheet you want to copy column X to column T of the same sheet ? Also, do you need to copy only or insert a new column ?

  3. #3
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Copy and pasting columns on multiple specific tabs

    yes you are understanding correctly. Copy and insert column on paste.

  4. #4
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: Copy and pasting columns on multiple specific tabs

    How about this

    Please Login or Register  to view this content.
    If I was able to help, you can thank me by clicking the * Add Reputation under my user name

  5. #5
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Copy and pasting columns on multiple specific tabs

    @nankw83 sorry for delay had a work priority. Macro is working. thank you for providing.

  6. #6
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: Copy and pasting columns on multiple specific tabs

    Glad to help & thanks for the reps

  7. #7
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Copy and pasting columns on multiple specific tabs

    i also just realized where my own initial error was. I shouldn't have used range to copy, and instead used ws.columns() to copy.

    thanks again for the help

  8. #8
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: Copy and pasting columns on multiple specific tabs

    Looking at your code, just another tip that you could use in the future is select case instead of the if or like below

    Please Login or Register  to view this content.

+ 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. Pasting a hyperlink in multiple tabs at once
    By BADebbie in forum Excel General
    Replies: 2
    Last Post: 09-05-2019, 01:53 PM
  2. [SOLVED] Copy specific columns from multiple workbooks to new workbook
    By nwix in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-03-2017, 10:48 AM
  3. [SOLVED] Fiter multiple criteria and copy columns in specific way
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-04-2015, 03:09 AM
  4. Macro to copy specific columns from Multiple worksheets
    By Shellybelly in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-11-2015, 11:32 AM
  5. [SOLVED] Copy data from Specific columns from a csv file and pasting it in the Active sheet
    By Pavan Renjal in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-01-2014, 12:14 PM
  6. Copying and pasting multiple text files into different tabs.
    By kingbiscuit in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-05-2008, 01:59 PM
  7. Replies: 5
    Last Post: 08-13-2006, 07:25 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