+ Reply to Thread
Results 1 to 5 of 5

VBA for open comment by clicking cell, formatting, paste and clear all from clipboard

  1. #1
    Registered User
    Join Date
    09-09-2016
    Location
    los angeles, ca
    MS-Off Ver
    14.0.7140.5002 32-bit
    Posts
    3

    VBA for open comment by clicking cell, formatting, paste and clear all from clipboard

    I've been googling this for awhile. Sometimes I think I get pieces of the code but seem to ulimately fall short. Anything you can do to help would mean so much to me. Here is what I'm looking for.

    When I have exactly four items in my Office Clipboard I want to Paste All into the comment of the selected cell then Clear All inside the clipboard. I would prefer never to have to open the comment myself.

    I have some specific conditions for the paste. Before pasting, if there is already text inside the comment I want it all deleted then to be cursored at the top of the blank comment, then Paste All. If there is no existing comment I want to insert one, delete the comment heading, then cursor me at the top of the blank comment, then Paste All.

    The Paste All needs to be bold text.

    Each item is a decimal number to the tenth or hundredth. The last item will always be exactly two numbers to the tenth or hundredth. Here is an example of what the clipboard will look like :

    Click an item to paste :
    7.24
    7.7
    9.65
    8.4 8.21

    When I Paste All, I would like to swap the last two numbers and add a Return space between them, formatted like :

    7.24
    7.7
    9.65
    8.21

    8.4

    Again, any help would be deeply appreciated even if it's pieces.
    Thank you!!!

  2. #2
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: VBA for open comment by clicking cell, formatting, paste and clear all from clipboard

    Attach a sample file...
    Don`t care, take care...

    Regards,
    Mangesh

  3. #3
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: VBA for open comment by clicking cell, formatting, paste and clear all from clipboard

    Cross posted
    http://www.mrexcel.com/forum/excel-q...clipboard.html
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  4. #4
    Registered User
    Join Date
    09-09-2016
    Location
    los angeles, ca
    MS-Off Ver
    14.0.7140.5002 32-bit
    Posts
    3

    Re: VBA for open comment by clicking cell, formatting, paste and clear all from clipboard

    I wish I could. When I click attachments I get a blank field. I've tried multiple browsers.

  5. #5
    Registered User
    Join Date
    09-09-2016
    Location
    los angeles, ca
    MS-Off Ver
    14.0.7140.5002 32-bit
    Posts
    3

    Re: VBA for open comment by clicking cell, formatting, paste and clear all from clipboard

    Thanks Mike!

+ 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] Clear Clipboard on cell selection
    By Macfool in forum Excel General
    Replies: 2
    Last Post: 08-24-2016, 04:16 AM
  2. Open a dialog box while clicking a cell
    By SharonTal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-03-2013, 12:56 PM
  3. copy paste with formatting bypassing clipboard
    By rossg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-31-2013, 04:16 AM
  4. [SOLVED] Clear contents in a matrix by clicking on a cell
    By sealpino in forum Excel General
    Replies: 1
    Last Post: 11-26-2012, 08:08 AM
  5. open a comment to cell range upon true condition then removing comment on false condition
    By ferrum_equitis in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2012, 12:55 AM
  6. [SOLVED] Paste clipboard to a comment
    By Meltad in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-08-2006, 10:55 AM
  7. [SOLVED] How can you open a tab(Sheet5) by clicking on particular cell say.
    By Suren Suthar in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-20-2005, 07:06 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