• 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
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Autofill a Summary Page from a single column in multiple worksheets|VBA & Macros|Excel Forum|My Online Training Hub

You are here: Home / Autofill a Summary Page from a single column in multiple worksheets|VBA & Macros|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
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 & MacrosAutofill a Summary Page from a sing…
sp_PrintTopic sp_TopicIcon
Autofill a Summary Page from a single column in multiple worksheets
Avatar
David Gallegos

Active Member
Members
Level 0
Forum Posts: 5
Member Since:
November 14, 2020
sp_UserOfflineSmall Offline
1
November 14, 2020 - 5:04 am
sp_Permalink sp_Print

Hello,

My name is David... I need a VBA script that will autofill data from a single column from multiple worksheets into one Summary worksheet.

My worksheet has multiple "Bin" worksheets for inventory cycle counts. Each worksheet represents a different bin on our shelf. Our cycle counters scan the serial # for each part into Column "G" of each worksheet. For the sake of size, I created a small sample worksheet, but my actual worksheet can have up to 20-25 worksheets representing different bins. Each with an identical setup utilizing column "G" for their scans.

What I need is to have a Summary worksheet that will autofill each serial # scan from each of these worksheets so that I don't have to copy/paste from each each worksheet, or create a formula to vlookup (changing the worksheet source every 600+ lines). There will be other worksheets on this file containing a Master Report Download that I don't want included in the autofill.

& not to throw a wrench into the mix, my worksheets usually have the names of each bin, and not "Bin (1)", "Bin (2)", "Bin (3)", etc. However, if I have to keep the worksheets named in this fashion, that's not a big deal, but if there was a way to use my custom names for each one, that would be great.

Any help would be greatly appreciated!!

Thank you,

David G.

Avatar
Purfleet
England
Member
Members


Trusted Members
Level 4
Forum Posts: 412
Member Since:
December 20, 2019
sp_UserOfflineSmall Offline
2
November 14, 2020 - 2:52 pm
sp_Permalink sp_Print

You just want to copy all the data in the various column G's in to one long column?

Sub ConsolidateG()

Dim ws As Worksheet
Dim NextSummaryCell

For Each ws In ActiveWorkbook.Worksheets
If ws.Name = "Master Download" Or ws.Name = "Summary" Then
GoTo skipws
End If

NextSummaryCell = Worksheets("Summary").Cells(Rows.Count, 1).End(xlUp).Row + 1

ws.Range("g5:g" & ws.Cells(Rows.Count, 7).End(xlUp).Row).Copy Worksheets("Summary").Range("a" & NextSummaryCell)

skipws:
Next ws

End Sub

Avatar
David Gallegos

Active Member
Members
Level 0
Forum Posts: 5
Member Since:
November 14, 2020
sp_UserOfflineSmall Offline
3
November 17, 2020 - 1:27 am
sp_Permalink sp_Print sp_EditHistory

Thank you so much!!

Yes! That's correct... and this is exactly what I'm looking for... However, I noticed that if I have to update the list by adding a serial # or 2 to one of the bins, I can't go back and just click the button to update... it re-adds all of the tabs again, duplicating the each entry.

Is there a way that would allow me to add an update to the list (scanning for new entries) without re-adding all of the tabs again? Just adding whatever update was added to one of the tabs.

Thank you in advance!

David G

Avatar
Purfleet
England
Member
Members


Trusted Members
Level 4
Forum Posts: 412
Member Since:
December 20, 2019
sp_UserOfflineSmall Offline
4
November 17, 2020 - 7:33 am
sp_Permalink sp_Print

It add more complexity to the macro, but yes it can be done.

Wouldnt it just be easier to delete the data in master download and run it again?

Does it need to check each sheet for a new entry or just add the data from a new bin?

Avatar
David Gallegos

Active Member
Members
Level 0
Forum Posts: 5
Member Since:
November 14, 2020
sp_UserOfflineSmall Offline
5
November 18, 2020 - 2:02 am
sp_Permalink sp_Print

I can just delete the data in master. That would be easier.

I do appreciate your help! This has helped tremendously!!!!

 

Respectfully,

David G.

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Catalin Bombea, Aislinn Mellamphy, Lynnette Altomari, Roy Lutke, Dieneba NDIAYE, Tucker Oakley, Natasha Smith
Guest(s) 12
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
Jessica Stewart: 202
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Sopi Yuniarti
sandra parker
LAFONSO HERNANDEZ
Hayden Hao
Angela chen
Sean Moore
John Chisholm
vexokeb sdfg
John Jack
Malcolm Toy
Forum Stats:
Groups: 3
Forums: 24
Topics: 6215
Posts: 27244

 

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

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • 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
 

Company

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

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.