+ Reply to Thread
Results 1 to 6 of 6

Move Data from one work sheet to another VBA

  1. #1
    Forum Contributor
    Join Date
    09-27-2017
    Location
    USA
    MS-Off Ver
    MS365 - 2302
    Posts
    164

    Post Move Data from one work sheet to another VBA

    Hi All,

    Previously I had a little help online including in this forum on finding how to write a macro to move data from one workbook to another,

    This time its the same idea but from one worksheet to another 2 worksheet based on a True or false.

    From Raw Data file: I want to move all with True in Column AN to worksheet Reported1 and True from column AO to worksheet Disabled!

    Please Login or Register  to view this content.
    Previously that was the code used but this time I am looking for something different and I tried tweaking that but does not help

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Move Data from one work sheet to another VBA

    You can try this, but check the sheet name in red font for validity. I question the exclamation mark (!").

    Please Login or Register  to view this content.
    Last edited by JLGWhiz; 07-30-2019 at 02:31 PM.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Forum Contributor
    Join Date
    09-27-2017
    Location
    USA
    MS-Off Ver
    MS365 - 2302
    Posts
    164

    Re: Move Data from one work sheet to another VBA

    Hi I am getting an error

    Sub Data2Sheets3()

    and wsRaw

    On the above

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,717

    Re: Move Data from one work sheet to another VBA

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Forum Contributor
    Join Date
    09-27-2017
    Location
    USA
    MS-Off Ver
    MS365 - 2302
    Posts
    164

    Re: Move Data from one work sheet to another VBA

    Last edited by alansidman; 07-30-2019 at 03:31 PM.

  6. #6
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Move Data from one work sheet to another VBA

    I don't know which workbook you are running the code from, but this assumes the one with Sheets("Raw") is open at run time. If not, you need to open that file before running the code.
    Modified to eliminate workbook reference.
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Move Data From one work book based criteria
    By nr6281 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-01-2019, 03:33 PM
  2. [SOLVED] Move Data From one work book to another with Criteria
    By nr6281 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-24-2019, 02:54 PM
  3. VBA Code to move row into new work sheet
    By Citrix1966 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2014, 06:20 PM
  4. Replies: 4
    Last Post: 10-14-2013, 10:15 AM
  5. Macro does not work when I move / copy sheet within the same workbook
    By osfares in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-23-2013, 11:45 AM
  6. automatically move row down in work sheet
    By philmozzz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-11-2013, 08:15 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1