+ Reply to Thread
Results 1 to 3 of 3

reading comments value into a string variable

  1. #1
    Matilda
    Guest

    reading comments value into a string variable

    Can't find anywhere the syntax for reading a comment into a variable in order
    to write it to another cell.
    cmnt = ActiveCell.comment.Text
    produces error msg
    - object variable orWith block not set

    Many TIA'S in advance

    Matilda

  2. #2
    Dave Peterson
    Guest

    Re: reading comments value into a string variable

    Check for a comment first.

    if activecell.comment is nothing then
    'do nothing
    'cmnt = ""
    'whatever you want
    else
    cmnt = activecell.comment.text
    end if



    Matilda wrote:
    >
    > Can't find anywhere the syntax for reading a comment into a variable in order
    > to write it to another cell.
    > cmnt = ActiveCell.comment.Text
    > produces error msg
    > - object variable orWith block not set
    >
    > Many TIA'S in advance
    >
    > Matilda


    --

    Dave Peterson

  3. #3
    Matilda
    Guest

    Re: reading comments value into a string variable


    Thanks for coming to the rescue again, Dave

    Matilda x
    "Dave Peterson" wrote:

    > Check for a comment first.
    >
    > if activecell.comment is nothing then
    > 'do nothing
    > 'cmnt = ""
    > 'whatever you want
    > else
    > cmnt = activecell.comment.text
    > end if
    >
    >
    >
    > Matilda wrote:
    > >
    > > Can't find anywhere the syntax for reading a comment into a variable in order
    > > to write it to another cell.
    > > cmnt = ActiveCell.comment.Text
    > > produces error msg
    > > - object variable orWith block not set
    > >
    > > Many TIA'S in advance
    > >
    > > Matilda

    >
    > --
    >
    > Dave Peterson
    >


+ 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