Consulting

Results 1 to 5 of 5

Thread: VBA cut,paste and delete

  1. #1
    VBAX Newbie
    Joined
    Jun 2017
    Posts
    3
    Location

    VBA cut,paste and delete

    Please Help!!!!!

    Am trying to transfer a record (row) from sheet 1(Transfer list) to sheet 2 (Transferred List). Transfer list will have customers details with column G(transfer date) blank (Date type). I only want the transfer and delete done only once a date is entered. On sheet 2, would like the insertion to be in the next available slot.

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Please post a sample workbook showing data and desired result. Go Advanced/Manage Attachments
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  3. #3
    VBAX Newbie
    Joined
    Jun 2017
    Posts
    3
    Location

    Sample spreadsheet attached

    Wonder if you could help please, Am new to VBA and am really excited at what it can do but am in a rush to come up with a solution.

    IN the attached spreasheet, i want records cut, paste from "Transfer list 2" to "Transferred list 2" based on criteria that column G has a date entered. Once this is moved, I would like original row in Transfer list 2 to be deleted.

    IN the attached spreasheet, i want records cut, paste from "Transferred list 2" to "Discharged_Returned" based on criteria that column H has a of either "Patient Discharged" or "Patient released". Once this is moved, I would like original row in Transfer list 2 to be deleted.

    Your quick response will be appreciated.

    Thanks
    Attached Files Attached Files

  4. #4
    Administrator
    VP-Knowledge Base VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Please provide a proper sample of typical data; 3 dates is hardly sufficient
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  5. #5
    VBAX Newbie
    Joined
    Jun 2017
    Posts
    3
    Location
    Here is a sample spreadsheet

    Thanks for your promptness
    Attached Files Attached Files

Posting Permissions

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