+ Reply to Thread
Results 1 to 2 of 2

Copy selected row from sheet1 to sheet2

  1. #1
    Registered User
    Join Date
    02-11-2021
    Location
    Slovakia
    MS-Off Ver
    365
    Posts
    1

    Red face Copy selected row from sheet1 to sheet2

    Hello Im newbie and need help.
    The hotel accommodates guests for longer stays. Each sheet represents one month of the year. If the guest arrives in January but does not leave in January, I need their data to be moved to sheet2. I have the following code:


    Please Login or Register  to view this content.
    The problem is that if I later add the departure date in Sheet1 to date January, the data will still remain in Sheet2. Would anyone be able to advise me?

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,422

    Re: Copy selected row from sheet1 to sheet2

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. As you are new, I have done it for you today.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Replies: 6
    Last Post: 01-29-2020, 07:46 AM
  2. [SOLVED] Copy selected data from sheet1 to sheet2
    By Rajesh shishodia in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-03-2015, 06:20 AM
  3. [SOLVED] A macro which pulls the data from sheet2 to sheet1 basis of scenarios selected in sheet1
    By Manish_Gupta in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2015, 01:46 PM
  4. [SOLVED] copy data from sheet1 to sheet2 based on column (A) sheet1 and column (C) sheet2
    By AWITCHER in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-13-2014, 03:20 PM
  5. Replies: 6
    Last Post: 07-25-2013, 02:58 PM
  6. [SOLVED] Copy Selected Rows from Sheet1 to Sheet2
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 08-08-2012, 05:34 AM
  7. [SOLVED] Copy and Paste Entire Row from Sheet1->Sheet2 based on text string match in Sheet1 Row
    By dmlovic in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-17-2012, 08:42 AM

Tags for this Thread

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