+ Reply to Thread
Results 1 to 5 of 5

Macro to add a comment to a cell via a text entry box from a user form

  1. #1
    Registered User
    Join Date
    10-11-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    12

    Macro to add a comment to a cell via a text entry box from a user form

    Hi There

    I am using Excel 2010 in a windows 7 environment.

    I am trying to write a macro that will allow me to do the following.

    I have created a user form for data entry. On the user form I have a text entry box that I would like the user to complete and when submitted, the text in the box will show as a comment on the respective cell in the worksheet??

    I have looked through the forum and Google to see if there is any type of code out there but to no avail.

    Any offers or advise for help is gratefully received

    Steve

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

    Re: Macro to add a comment to a cell via a text entry box from a user form

    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
    10-11-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Macro to add a comment to a cell via a text entry box from a user form

    Hi There

    Thanks for the quick reply.

    The codes says "ActiveCell" what if I had a text box linked to a specific cell on a specific worksheet. How would that change your code??

    Steve

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

    Re: Macro to add a comment to a cell via a text entry box from a user form

    Sheets("Sheet1").Range("A1").AddComment
    Sheets("Sheet1").Range("A1").Comment.Text .Text

  5. #5
    Registered User
    Join Date
    10-11-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Macro to add a comment to a cell via a text entry box from a user form

    Hey Buddy. That worked brilliantly. Thanks ever so much.

    Steve

+ 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] Verify that record dosen't exist on user form text box entry
    By jprlimey in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-16-2014, 05:23 PM
  2. Msg box based on cell value from user form entry
    By lacey0519 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-19-2014, 10:42 AM
  3. User form for entry and a sheet for its database (macro)
    By dondonordas in forum Excel General
    Replies: 3
    Last Post: 03-13-2014, 08:36 PM
  4. Replies: 1
    Last Post: 08-28-2013, 05:04 PM
  5. Insert Rows Based on text Box Entry in User Form
    By aqhibjaveed2183 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-16-2013, 02:44 AM
  6. [SOLVED] Making a User form text entry box show when a checkbox is selected
    By delaneybob in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-02-2012, 07:24 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