+ Reply to Thread
Results 1 to 4 of 4

Copy Paste to Loop Through Sheets in Workbook

  1. #1
    Registered User
    Join Date
    12-26-2015
    Location
    Las Vegas
    MS-Off Ver
    2013
    Posts
    56

    Copy Paste to Loop Through Sheets in Workbook

    Hola Gurus,

    I cannot figure out why this simple copy paste doesn't work... any advice?



    Sub CopyPaste()

    Dim sh As Worksheet

    Application.ScreenUpdating = False

    For Each sh In ThisWorkbook.Worksheets

    Columns("O:O").Select
    Selection.Copy
    Selection.PasteSpecial Paste:=xlPasteAllUsingSourceTheme, Operation:=xlNone _
    , SkipBlanks:=False, Transpose:=False
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False

    Next 'sh

    End Sub


    Thank you for any help!

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

    Re: Copy Paste to Loop Through Sheets in Workbook

    Try this code
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  3. #3
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: Copy Paste to Loop Through Sheets in Workbook

    Hi,
    What exactly does not work? What line cause error?
    Worked fine in my workbook.

  4. #4
    Registered User
    Join Date
    12-26-2015
    Location
    Las Vegas
    MS-Off Ver
    2013
    Posts
    56

    Re: Copy Paste to Loop Through Sheets in Workbook

    Worked great thanks!

+ 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. [SOLVED] Loop through a folder copy and paste range to 1 workbook
    By smartbuyer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-12-2016, 11:39 AM
  2. Loop copy and paste range to different sheets.
    By countryfan_nt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-19-2015, 09:11 AM
  3. Loop through all sheets and copy and paste values for specific formula
    By SAFC in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-17-2015, 08:17 AM
  4. [SOLVED] VBA Copy Paste Transpose Loop (Multiple Sheets)
    By demon8991 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-03-2013, 11:50 PM
  5. Replies: 2
    Last Post: 09-11-2012, 09:42 AM
  6. Macro to copy a selection, paste it in a new workbook then loop
    By AK262007 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-06-2010, 06:35 AM
  7. [SOLVED] copy,paste and loop through workbook
    By TUNGANA KURMA RAJU in forum Excel General
    Replies: 0
    Last Post: 12-06-2005, 08:55 AM

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