• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member
  • Login

Copy all worksheets in one|VBA & Macros|Excel Forum|My Online Training Hub

You are here: Home / Copy all worksheets in one|VBA & Macros|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumVBA & MacrosCopy all worksheets in one
sp_PrintTopic sp_TopicIcon
Copy all worksheets in one
Avatar
Bill Jone
Member
Members
Level 0
Forum Posts: 32
Member Since:
July 17, 2019
sp_UserOfflineSmall Offline
1
August 27, 2019 - 12:19 am
sp_Permalink sp_Print

Hi all,

Please can you help me to Copy all worksheets in one. please check attached file.

Input: many worksheets, may be 2 and more.

Output: Consolidated sheet.

Thanks;

Bill

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1549
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
2
August 27, 2019 - 12:29 am
sp_Permalink sp_Print

Hi Bill,

No workbook attached.

Regards

Phil

Avatar
Bill Jone
Member
Members
Level 0
Forum Posts: 32
Member Since:
July 17, 2019
sp_UserOfflineSmall Offline
3
August 27, 2019 - 2:45 am
sp_Permalink sp_Print

Hi Philip,

Thank you for fast reply.

Please check attached file.

 

Thanks;

Bill

Avatar
Bill Jone
Member
Members
Level 0
Forum Posts: 32
Member Since:
July 17, 2019
sp_UserOfflineSmall Offline
4
August 29, 2019 - 7:07 pm
sp_Permalink sp_Print

Hi Philip,

I'm sure you are busy, when you have a chance please check my request.

Thanks;

Bill

Avatar
Robert Smith
UK
Member
Members
Level 0
Forum Posts: 9
Member Since:
June 12, 2019
sp_UserOfflineSmall Offline
5
August 30, 2019 - 9:36 pm
sp_Permalink sp_Print

Hi Bill

See attachment, i am presuming there are headers on all sheets ?

Rob

Avatar
Bill Jone
Member
Members
Level 0
Forum Posts: 32
Member Since:
July 17, 2019
sp_UserOfflineSmall Offline
6
September 2, 2019 - 7:34 pm
sp_Permalink sp_Print

Hi Robert,

This is impressive! Thank you very much!

Please can you let me know that, the changes in code, in case the sheets not have headers.

Thanks;

Bill

Avatar
Robert Smith
UK
Member
Members
Level 0
Forum Posts: 9
Member Since:
June 12, 2019
sp_UserOfflineSmall Offline
7
September 18, 2019 - 7:59 pm
sp_Permalink sp_Print

Hi Bill

Sorry for the delay have been on holiday in Greece

If the sheets do not contain headers then change the Offset from (1) to (0) as below

Sheets(i).Cells(1, 1).CurrentRegion.Offset(0).Copy Tgt.Cells(Lr, "A")

Regards

Rob

Avatar
Bill Jone
Member
Members
Level 0
Forum Posts: 32
Member Since:
July 17, 2019
sp_UserOfflineSmall Offline
8
September 19, 2019 - 6:50 am
sp_Permalink sp_Print

Hi Robert,

I hope you had a nice holiday.

Grateful for your support..

Thanks;

Bill

Avatar
Guest
Guest
Guests
9
November 16, 2019 - 2:07 am
sp_Permalink sp_Print

Hi Robert,

I likes the coding that you shared with Philip and Bill. It is really simple. Thank you for your sharing.

I am having a problem in combining 2 sub into 1. Could you please guide me what is the issue in the coding. The code are not able to execute. I would like to to have a coding to combine the 3 different workbook into one workbook and sorting the worksheet in the same workbook.

I have the code to combine 3 different workbook into one. And the code to sort the worksheet in same workbook. However, i have no idea how to add into one sub. Could you please help me? Thank you

Regards,

CY

Avatar
Guest
Guest
Guests
10
November 19, 2019 - 10:37 am
sp_Permalink sp_Print

Hi Robert or Bill,

Do you have chance to take a look at my questions? Or anyone can help me? Please? Thank you.

Regards,

CY

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online:
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 880
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 237
Jessica Stewart: 219
A.Maurizio: 213
Aye Mu: 201
Hans Hallebeek: 183
Newest Members:
Rob Rooth
Tom Lewis
Jennifer Rodriguez-Avila
Khaled Ibrahim
Kiran Supekar
Lisa Myers
Ronald White
Ginette Guevremont
Taryn Ambrosi
Mark Davenport
Forum Stats:
Groups: 3
Forums: 24
Topics: 6531
Posts: 28604

 

Member Stats:
Guest Posters: 49
Members: 32822
Moderators: 2
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel Office Scripts
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook

Sign up to our newsletter and join over 400,000
others who learn Excel and Power BI with us.

 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate
  • Sponsor Our Newsletter

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.