separate master worksheet into many worksheets by clients

rjmdc

Well-known Member
Joined
Apr 29, 2020
Messages
672
Office Version
  1. 365
Platform
  1. Windows
hi
i have a master worksheet 2000+ entries made up of checks sent to many clients
i need to divide this sheet into 200+ workbooks each with the name of the individual client
can somebody help me?
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Please post your workbook to a CLOUD site for download. Post the URL to download the workbook.
 
Upvote 0
Create a sample workbook which has dummy data laid out in the same way as the real one and upload that.
 
Upvote 0
Agreed ... remove the Patient Data (Names, addresses, phone number, email, etc.)
 
Upvote 0
This Forum does not provide a means to upload a file. You will need to upload your workbook to a Cloud website (DropBox.com or similar) then provide the download
link here.
 
Upvote 0

hi i hope this works
i need a macro that will work with a button
1- i need to divide this master payments sheet by participant name and save in a general folder with workbooks per participant that will keep updating as i run this macro, overwrite whats there and replace with new info (column B)
all payments made for that participant on sheet 1 called "All Payments"
2- then create for each participant in this workbook a separate tab for each month of service (column E), each tab labeled month/year

once i have that i will then file each workbook in each participants file

can anyone help me?
 
Upvote 0
hi
is there anyone that can help me. i have spent so many wasted hours and am no closer to a solution.
 
Upvote 0
what am i doing wrong. it completes 1 file and then stops and says debug
VBA Code:
Sub FilterCopy()
   Dim cl As Range
   Dim Ws As Worksheet
  
   Set Ws = Sheets("All Payments")
   If Ws.FilterMode Then Ws.ShowAllData
   With CreateObject("scripting.dictionary")
      For Each cl In Ws.Range("B2", Ws.Range("B" & Rows.Count).End(xlUp))
         If Not .Exists(cl.Value) Then
            .Add cl.Value, Nothing
            Ws.Copy
            Range("A1").AutoFilter 2, "<>" & cl.Value
            Range("B2:B5000").SpecialCells(xlVisible).EntireRow.Delete
            ActiveSheet.ShowAllData
            ActiveWorkbook.SaveAs "M:\all\FI Payments\Single Participant Payment Worksheets\Split Files" & cl.Value & ".xlsx", 51
            ActiveWorkbook.Close False
         End If
      Next cl
   End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,195
Members
449,072
Latest member
DW Draft

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top