don't copy sheet with specific name

alansidman

Well-known Member
Joined
Feb 26, 2007
Messages
5,071
Office Version
2019
Platform
Windows
What else is happening that would preclude this action. Need a bigger picture to understand the issue and how to solve.
 

tech3

New Member
Joined
Oct 24, 2019
Messages
10
My bad and thanks for the response. Here is my situation i have a multiple workbook save on a folder. each workbook has 3 sheets in it. sheet order are main, summary and raw now there are instance that a workbook does not have summary sheet in it. i have a code that copies the 2nd sheet based on the order given but every time i run it, it copies the next sheet (raw) whenever summary sheet is missing
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
51,416
Office Version
365
Platform
Windows
You can add a line of code to your existing code to exclude copying sheets of certain names.

If you post your code, and the name of the sheet you DON'T want to copy, we can help you amend your code.
 

Forum statistics

Threads
1,081,532
Messages
5,359,359
Members
400,524
Latest member
Excelbat

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top