+ Reply to Thread
Results 1 to 5 of 5

A macro which will search for multiple comments and put them all into one cell?

  1. #1
    Registered User
    Join Date
    10-10-2012
    Location
    Dubai
    MS-Off Ver
    Excel 2007
    Posts
    9

    A macro which will search for multiple comments and put them all into one cell?

    Probably the worst title in the history of this forum but i'm still recovering from a 10K race last night!

    I'm trying without much luck to write a macro with VBA to search for multiple comments in the 'This Week Comments' column in the data tab and stick them all in the 'Comments' column of the 'Topsheet'.

    The AR Assignment Number is the unique identifier for each document or order.

    I can get Excel to put one comment in there, but not all of the different comments?

    I hope someone can help as i'm really stuck.
    Attached Files Attached Files
    Last edited by Kitsan; 11-24-2012 at 01:22 PM.

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: A macro which will take multiple comments and put them all into another cell?

    Hello Kitsan,

    Is the attachment function broken?
    No, the Attachment feature works fine.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Registered User
    Join Date
    10-10-2012
    Location
    Dubai
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: A macro which will take multiple comments and put them all into another cell?

    Ahh it's working now, must be the firewall at work.

    If anyone could help it'd be great?
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    10-10-2012
    Location
    Dubai
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: A macro which will take multiple comments and put them all into another cell?

    Have I worded the question badly?

    My boss just sent me this if it makes any sense to you guys, i'm still very much a newbie to VBA:

    I would just append them. Eg if you create a variable call MyComment then when you find the first comment you can say:

    MyComment = MyComment & activecell.value

    When you find the second comment it will be the same and so on.

  5. #5
    Registered User
    Join Date
    10-10-2012
    Location
    Dubai
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: A macro which will search for multiple comments and put them all into one cell?

    BUMP

    On advice from another forum i've shown how I want the Topsheet tab to represent the data that the macro retrieves:

    search_macro.xlsx - 715 KB

    Sorry, I had to host on there as my work laptop seems to block the attachment manager on this site

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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