none
Code for merge sheets RRS feed

  • Question

  • Hello,

    I'm new to VBA. I have 4 sheets in my excel which are in different order.

    Just now I record a macro fro arranging the sheets and combine and it works.

    But next week my row count increases in all 4 sheets, so how to pull all the data.

    Thanks

    Naresh Kumar

    Wednesday, January 8, 2020 6:26 AM

All replies

  • Please post the code that you recorded and I will have a look at with a view to editing so that it can identify all data on the worksheets.

    If you don't have any sensitive data in the worksheets and you are prepared to share the data (or replace sensitive data with dummy data) then you could upload a copy of the workbook to OneDrive and that makes it better still for helping you.

    Guidelines to upload a workbook on OneDrive. (If you already use OneDrive and your process for saving to it is different then you can probably start at step 8 to get the link but please zip the file before uploading.)
    1. Zip your workbooks. Do not just save an unzipped workbook to OneDrive because the workbooks open with On-Line Excel and the limited functionality with the On-Line version causes problems.
    2. To Zip a file: In Windows Explorer Right click on the selected file and select Send to -> Compressed (zipped) folder). By holding the Ctrl key and left click once on each file, you can select multiple workbooks before right clicking over one of the selections to send to a compressed file and they will all be included into the one Zip file.
    3. Do not use 3rd party compression applications because I cannot unzip them. I do not clog up my computer with 3rd party apps when there are perfectly good apps supplied with windows.
    4. Go to this link.  https://onedrive.live.com
    5. Use the same login Id and Password that you use for this forum.
    6. Select Upload under the blue bar across the top and browse to the zipped folder to be uploaded.
    7. Select Open (or just double click). (Be patient and give it time to display the file after initially seeing the popup indicating it is done.)
    8. Right click the file name in OneDrive.
    9. Select Share.
    10. Click the link icon (Looks like chain links) at the bottom left of the dialog (Just above "Copy link").
    11. Click Copy button.
    12. Change back to this forum and click the "Insert Hyperlink" icon at top of the posting editor (Icon looks like chain links).
    13. Right click in the Web address field and right click and paste (or just Ctrl V to paste).
    14. Click "Insert" Button.


    Regards, OssieMac

    Wednesday, January 8, 2020 6:43 AM