+ Reply to Thread
Results 1 to 4 of 4

Move Cell Data to Imbedded Comment

Hybrid View

  1. #1
    Registered User
    Join Date
    12-16-2011
    Location
    Columbus
    MS-Off Ver
    Excel 2007
    Posts
    76

    Move Cell Data to Imbedded Comment

    Is there a formula that will move text comments into an existing cell with data as an imbedded comment? Perferably without using a macro.

    Ideally, looking for a formula that would inbed the data in Column A as a comment in Column B

    If macro is the only option, if someone could walk me through the process of using a macro, that would be great - I am not familiar with using macros
    Attached Files Attached Files

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Move Cell Data to Imbedded Comment

    Here is a macro-based solution. Open the file. Enable macros. Touch ALT-F8
    Touch Run
    Attached Files Attached Files
    Gary's Student

  3. #3
    Registered User
    Join Date
    12-16-2011
    Location
    Columbus
    MS-Off Ver
    Excel 2007
    Posts
    76

    Re: Move Cell Data to Imbedded Comment

    Thanks - How would I set this up with another file?

  4. #4
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Move Cell Data to Imbedded Comment

    Here is the macro itself:

    Sub InsertComments()
    For Each r In Intersect(Range("A:A"), ActiveSheet.UsedRange)
        If IsEmpty(r) Then
        Else
            With r.Offset(0, 1)
                .AddComment
                .Comment.Visible = True
                .Comment.Text Text:=r.Text
            End With
        End If
    Next
    End Sub

    Macros are very easy to install and use:

    1. ALT-F11 brings up the VBE window
    2. ALT-I
    ALT-M opens a fresh module
    3. paste the stuff in and close the VBE window

    If you save the workbook, the macro will be saved with it.

    To remove the macro:

    1. bring up the VBE window as above
    2. clear the code out
    3. close the VBE window

    To use the macro from Excel:

    1. ALT-F8
    2. Select the macro
    3. Touch RUN

    To learn more about macros in general, see:

    http://www.mvps.org/dmcritchie/excel/getstarted.htm

    Macros must be enabled for this to work!

+ 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