Results 1 to 20 of 24

Thread: Macro to split data based on the value from specific column

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #23
    i also got error when opening the workbook.

    try to update the code in ThisWorkbook:

    Private Sub Workbook_Open()
    Set Module1.myWorkbook = ThisWorkbook
    Set Module1.myListObject = ThisWorkbook.Sheets("Data").ListObjects(1)
    End Sub

    then close and re-open the workbook.
    Last edited by Aussiebear; 08-01-2022 at 01:14 AM. Reason: Added code tags to supplied code

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •