+ Reply to Thread
Results 1 to 3 of 3

Copy and paste active cell and include adjacent cells

Hybrid View

lukasd Copy and paste active cell... 02-10-2017, 02:12 PM
mehmetcik Re: Copy and paste active... 02-10-2017, 03:49 PM
lukasd Re: Copy and paste active... 02-11-2017, 03:17 PM
  1. #1
    Registered User
    Join Date
    06-06-2013
    Location
    Detroit, MI
    MS-Off Ver
    Excel 2007
    Posts
    4

    Copy and paste active cell and include adjacent cells

    I have many rows of data in multiple columns (Cells A7:J1300).
    A user selects a name from a validation list in Cell E2.
    Once a name in E2 is chosen, I have a macro that selects the matching cell in Column D7:D1300 using Application.Goto .

    What I am trying to do from here is:
    1- Copy the active cell along with several cells adjacent to the active cell (example: copy active cell = cell D:200 + E:200 through U:200)
    2- Paste values of all those cells in the next available (empty) row in say "sheet2".
    3- Message box confirming that cells have been pasted
    4- Hide or possibly Delete the row the entire row from which all the cells were copied from.

    Struggling with the adjacent cells and deleting/hiding the original row.

    Any help would be greatly appreciated.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Copy and paste active cell and include adjacent cells

    A sample of your sheet would have been useful.

    How many names in your Validation List? I normally find that approach verrrrrrrrry slow.

    I will produce an example for you.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Attached Files Attached Files
    Last edited by mehmetcik; 02-11-2017 at 12:13 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    06-06-2013
    Location
    Detroit, MI
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Copy and paste active cell and include adjacent cells

    I was actually able to solve the basics of my original post. Thanks for the reply. I am posting a different issue that I'm now faced with a new separate thread.

+ 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 Formula from different cells and Paste in the active columns remaining cells
    By prabhubox@yahoo.com in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-03-2016, 12:26 AM
  2. Replies: 4
    Last Post: 07-03-2015, 04:27 AM
  3. VBA Copy from one sheet and paste two cells to the right from active cell on another sheet
    By pasqualebaldi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-10-2013, 01:16 PM
  4. [SOLVED] Copy and paste comment on the adjacent cells
    By lokwungkwung in forum Excel General
    Replies: 7
    Last Post: 08-26-2013, 11:46 AM
  5. [SOLVED] Copy/Paste Adjacent Cells based on ActiveCell
    By brgr4u in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-24-2013, 03:41 PM
  6. Copy and paste formula into adjacent cells
    By pixifaery in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-24-2010, 07:25 PM

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