» Distribute Data from a List of the day to day sheets using VBA
CATEGORY - Database in VBA
VERSION - All Microsoft Excel Versions
Question: 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:
- Harry Potter and the Order of the Phoenix (Book 5)
- Finance and Accounting for Nonfinancial Managers
- The Ernst & Young Business Plan Guide
- Learn MS Excel 2002 VBA/XML Programming
- Your First Business Plan: A Simple Question and Answer Format Designed to Help You Write Your Own Plan (3rd Ed)
- F1 Get the Most out of Excel! The Ultimate Excel tip Help Guide
No comments have been submitted.

