+ Reply to Thread
Results 1 to 6 of 6

Copy Certain cells on a row and paste into a comment

  1. #1
    Registered User
    Join Date
    12-15-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    18

    Copy Certain cells on a row and paste into a comment

    I am wondering if anyone would be able to give me some advice. I have a fairly large spreadsheet and I would like to paste key data into a comment on the first cell of every row.

    For example

    A1: Reference Number A2: Customer Name: A3: Payment Data A4: Renewal Date A5: Contact Number: A6: Model of Car


    Copy all the data from A1 to A6 and place them in a comment in A1 and separate the line.

    So for example

    A1: A95124D A2: Kirsty Lenton A3: 54553453 A4: 10/10/2015 A5: 801 34356 3453 A6: Pontiac


    In the comment in A1:

    A95124D
    Kirsty Lenton
    54553453
    10/10/2015
    801 343563453
    Pontiac

    This would need to loop on every row placing the data into the comment on the first row until the end. (approx. 200 entries)

    Thank you very much for all your time

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Copy Certain cells on a row and paste into a comment

    Are Reference Number, Customer Name etc definitely going down the column, ie A1, A2, A3 etc?

    Or are they going across the row, eg A1, B1, C1 etc?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    12-15-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    18

    Re: Copy Certain cells on a row and paste into a comment

    Hello Norie

    Thanks for your quick reply

    I made a little mistake, yes they are going across the row

    It *Should* read:-

    A1: Reference Number B1: Customer Name: C1: Payment Data D1: Renewal Date E1: Contact Number: F1: Model of Car

    Paste A1 to F1 into a comment in A1 (but have line breaks between each data)

    Thanks

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Copy Certain cells on a row and paste into a comment

    Try this.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-15-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    18

    Re: Copy Certain cells on a row and paste into a comment

    Hello Norie

    Thankyou! this works perfectly, I appreciate you taking your time out to help me.

    I wonder if you would be able to help me a little bit more.

    The code works perfectly however I would like to Copy the header as well for example:-


    A1: Reference Number B1: Customer Name: C1: Payment Data D1: Renewal Date E1: Contact Number: F1: Model of Car


    A2: A95124D B2: Kirsty Lenton C2: 54553453 D2: 10/10/2015 E2: 801 34356 3453 F2: Pontiac


    A3: B34354F B3: Timothy Jones C3: 23433545 D3: 01/01/2014 E3: 234546 F3: Dodge

    So the comment in A2 would say:

    Reference Number: A95124D
    Customer Name: Kirsty Lenton
    Payment Data: 54553453
    Renewal Date: 10/10/2015
    Contact Number: 801 34356 3453
    Model Of Car: Pontiac

    So the comment in A3 would say:

    Reference Number: B34354F
    Customer Name: Timothy Jones
    Payment Data: 23433545
    Renewal Date: 01/01/2014
    Contact Number: 234546
    Model Of Car: Dodge


    Also is there a way to re-size the comment box so all the data fits in??

    Thanks
    Last edited by markpem; 01-28-2015 at 10:31 AM.

  6. #6
    Registered User
    Join Date
    12-15-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    18

    Re: Copy Certain cells on a row and paste into a comment

    I have updated my original post as I had csome of the cells wrong

+ 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 contents of multiple comment boxes and paste in a single comment box
    By xxJaRxx in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-14-2014, 12:39 PM
  2. [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
  3. Copy and Paste with matching function? Comment Box
    By mdeisen1 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-18-2013, 12:29 PM
  4. Macro: IF given range contains a comment box, then copy cell D1 and paste.
    By azhar.sayed in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-10-2011, 07:22 AM
  5. copy and paste graphics into comment boxes
    By steve in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-23-2005, 11:05 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