» Distribute Data from a List of the day to day sheets using VBA
CATEGORY - Database in VBA
VERSION - All Microsoft Excel Versions
How can I distribute Data from a List of the day (date in Column A) to separate day sheets. The names of the Worksheets correspond to the respective date.
Answer:
Enter the following Code with XL5/7 in an ModuleSheet, with XL8 in a general Module, assign it to a Button and run it.
Place the code below into the standard module
Sub Divide()
Dim intRowS As Integer, intRowT As Integer
Dim strTab As String
intRowS = 2
Do Until IsEmpty(Worksheets(1).Cells(intRowS, 1))
strTab = Cells(intRowS, 1).Text
intRowT = Worksheets(strTab).Cells(Rows.Count, 1).End(xlUp).Row + 1
Rows(intRowS).Copy Worksheets(strTab).Rows(intRowT)
intRowS = intRowS + 1
Loop
End Sub
Book Store:
Recommended Books:
- Marketing Plan: A Handbook with Marketing Plan
- Adventure Capitalist: The Ultimate Road Trip
- Financial Shenanigans : How to Detect Accounting Gimmicks & Fraud in Financial Reports
- Microsoft Office Xp: Advanced Concepts and Techniques: Word 2002, Excel 2002, Access 2002, Powerpoint 2002
- Financial Statement Analysis: A Practitioner's Guide, 3rd Edition
- 422 Tax Deductions for Businesses and Self-Employed Individuals : You Get a Raise Every Time You Find a Legitimate Tax Deduction
No comments have been submitted.

