+ Reply to Thread
Results 1 to 4 of 4

Exclusion in an array

  1. #1
    Forum Contributor
    Join Date
    07-01-2009
    Location
    Maine, USA
    MS-Off Ver
    Excel 2016
    Posts
    161

    Exclusion in an array

    I have the following code to copy some worksheets to a new workbook:

    Please Login or Register  to view this content.
    How would I modify this so sheet1 is a xlPasteAll instead of an xlPasteValues? I tried copying the For/Next loop, but it just creates another workbook.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,508

    Re: Exclusion in an array

    Try adding
    Please Login or Register  to view this content.
    You've already copied Sheet1 so leave it alone.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,560

    Re: Exclusion in an array

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    07-01-2009
    Location
    Maine, USA
    MS-Off Ver
    Excel 2016
    Posts
    161

    Re: Exclusion in an array

    Thanks Jindon. Does what I needed and kept the formulas on sheet1, but not the others. Some reason, I keep forgetting about IIF statement!

+ 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] Summing & Exclusion
    By Excel-Access in forum Excel General
    Replies: 4
    Last Post: 04-14-2019, 06:59 AM
  2. [SOLVED] Average with condition exclusion
    By nd4spd in forum Excel General
    Replies: 13
    Last Post: 12-09-2014, 08:24 AM
  3. SUMIF with exclusion critera
    By Zanith in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-13-2013, 04:16 PM
  4. Exclusion Filter?
    By ct711 in forum Excel General
    Replies: 1
    Last Post: 12-07-2011, 02:40 PM
  5. Cannot AutoFilter By Exclusion using VBA
    By CBG05QB in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-01-2011, 08:59 AM
  6. VBA unique value returned with exclusion
    By beechum1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-30-2009, 10:50 AM
  7. [SOLVED] Advanced filter exclusion
    By Eric Stephens in forum Excel General
    Replies: 2
    Last Post: 05-19-2006, 11:10 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