+ Reply to Thread
Results 1 to 5 of 5

delete respective row and paste to sheet2 after Autoemail action

  1. #1
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    delete respective row and paste to sheet2 after Autoemail action

    Hi all,
    I have sheet1 where there is data table.
    Sheet2 is intended to be storing actioned data

    In sheet1 module I have following code which works fine and does following:
    As soon as comments are typed in column 'N'
    - It changes respective row colour to RED ( Cond Form)
    -In column 'P' it counts the contents in column 'N' ( Counta formula)
    - It then populates application username in column 'Q'
    -It populates current date & time in column 'R'

    When command button is pressed it dose the following:
    - copied data from respective row and displays it in outlook
    This allows to send email with appropriate data.

    all works fine.

    I want to achieve the following:
    After email is sent, I want respective row to be deleted and pasted as value in sheet2 in next row free.
    ( I am getting issues here and not been able to do it correctly) Need help here.

    Code is
    Please Login or Register  to view this content.
    Please help. I have attached trial sheet
    Kind regards
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: delete respective row and paste to sheet2 after Autoemail action

    Hi all,
    I am trying to incorporate code which copies to sheet2 , but column 'N' is blank and row it is not deleted from sheet1.
    Almost there.
    This one in module 1

    Please Login or Register  to view this content.

    And I call it as follows:

    Please Login or Register  to view this content.
    Need Help please.

    Kind regards

  3. #3
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: delete respective row and paste to sheet2 after Autoemail action

    Hi all,
    I have tried differently and it works with slight issue:
    In column current date is populated by the main code... No issues at all.
    I have created change event
    Please Login or Register  to view this content.
    It does cut and paste the said row, but also cuts few others above this row.
    Really not understood.

    There is something that I am missing.
    Please help
    Kind regards

  4. #4
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: delete respective row and paste to sheet2 after Autoemail action

    Hi again,
    I am trying many combinations yet no success.
    Please help
    Kind regards

  5. #5
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: delete respective row and paste to sheet2 after Autoemail action

    Hi all,
    I have self generated the solution with few valuable Hints and help from AlphaFrog and Norie in different Threads.
    Please see My Thread at:
    Many thanks
    Kind regards

+ 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. copy a picture in the sheet as comment background in sheet2 in respective cells
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-25-2014, 05:48 AM
  2. [SOLVED] Edit macro to perform action in Sheet1 and Sheet2 based on the value in sheet3
    By bmbalamurali in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-22-2013, 04:17 AM
  3. Action when Paste
    By hojkoff in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-09-2011, 05:49 AM
  4. Replies: 12
    Last Post: 08-21-2011, 01:20 PM
  5. action to delete
    By tolly in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-19-2010, 08:09 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