+ Reply to Thread
Results 1 to 4 of 4

Copy selected cell content into D1, then D2, D3 etc.

  1. #1
    Registered User
    Join Date
    05-19-2014
    Posts
    11

    Copy selected cell content into D1, then D2, D3 etc.

    Hello;

    Hope everyone is doing great. I have a simple Excel question to ask and would like to know if there is a solution for it

    1- I have a list of operations in Column A1:A30 (for example, A1=MS10, A2=MS15, A3=MS20 and so on)
    2- What I need is to copy and paste the content of any clicked cell, ranging from (A1:A30) into Column D1, then my next click in column A should appear in D2 and so on
    3- In other words, If I click A1 then copy A1 to D1, If I click A5 then copy A5 into D2, If I click A20 then copy A20 into D3
    4- If a cell in column A is clicked for 2nd time then ignore and do nothing

    Is this possible?

    Best Regards

    Adsk

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Copy selected cell content into D1, then D2, D3 etc.

    To install the code:
    • Right-click on the sheet tab.
    • Select View Code from the pop-up context menu.
    • Paste the code from below in the worksheet's code module.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    05-19-2014
    Posts
    11

    Re: Copy selected cell content into D1, then D2, D3 etc.

    Good Morning Alpha

    This is much appreciated. I will try your code and will let you know

    Best Regards

  4. #4
    Registered User
    Join Date
    05-19-2014
    Posts
    11

    Re: Copy selected cell content into D1, then D2, D3 etc.

    Hello Alpha

    Just wanted to let you know that your code worked like a charm.
    Thank you very much for your help

    Best 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. [SOLVED] Deleting content in selected cell range
    By isalmon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-05-2019, 03:48 PM
  2. Replies: 3
    Last Post: 05-06-2018, 09:07 PM
  3. Automatically copy cells content based on the content of another cell.
    By chrisbarlow1984 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-01-2014, 11:13 AM
  4. If value is blank, delete content in selected cell
    By thelegazy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-25-2013, 11:52 AM
  5. Return the content of a user selected cell.......THX
    By FireTheft in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-16-2012, 07:18 AM
  6. Replies: 2
    Last Post: 09-03-2012, 02:56 PM
  7. What code for macro to copy selected cell content
    By BlastRanger in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-23-2010, 01:29 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