+ Reply to Thread
Results 1 to 10 of 10

Excel Macro lotus notes email Select range and paste in subject

  1. #1
    Registered User
    Join Date
    05-08-2013
    Location
    Amsterdam
    MS-Off Ver
    Excel 2007
    Posts
    17

    Excel Macro lotus notes email Select range and paste in subject

    Good afternoon,

    A quick question.
    Im quite new to VBA and was trying to figure out how to do it by myself but I can't seem to get it to work.

    The problem is I'm trying to select a filtered range in column C to be entered as subject in a lotus email.
    When column D has a value One, Two or Three. In column C only the data matched to One should be selected and pasted as Subject.

    If it's not possible the body of the email would be fine to but it would be really great if we could have it in the subject.
    I can select just one cell
    Please Login or Register  to view this content.
    But when I try to select the whole column I get an error code.
    Please Login or Register  to view this content.
    Am I doing something wrong??
    Could someone help me resolve this issue????

    The full code below:
    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Excel Macro lotus notes email Select range and paste in subject

    Maybe:

    Try changing this

    Please Login or Register  to view this content.
    To this

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-08-2013
    Location
    Amsterdam
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Excel Macro lotus notes email Select range and paste in subject

    Hi John,

    thanks for your reply.

    When I change the VBA code to:
    Please Login or Register  to view this content.
    It does work but I can't seem to select the whole column.
    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Excel Macro lotus notes email Select range and paste in subject

    I've never been able to select a whole column for a subject line. How many rows does your Column C contain.

  5. #5
    Registered User
    Join Date
    05-08-2013
    Location
    Amsterdam
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Excel Macro lotus notes email Select range and paste in subject

    Quote Originally Posted by JOHN H. DAVIS View Post
    I've never been able to select a whole column for a subject line. How many rows does your Column C contain.
    Hi John,

    It varies from 1 to 10 rows.

    If it's not possible to add to whole column would it be possible to add the column to the body of the email??

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Excel Macro lotus notes email Select range and paste in subject

    You could use something like this for either:

    Please Login or Register  to view this content.
    There may be better ways, but this is the only way I know.

  7. #7
    Registered User
    Join Date
    05-08-2013
    Location
    Amsterdam
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Excel Macro lotus notes email Select range and paste in subject

    Hi John,

    It would be a solution.

    Do you have any idea how I can add the column to the body of the email??
    Or would I encounter the same problem???

  8. #8
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Excel Macro lotus notes email Select range and paste in subject

    The only way I know would be similar to the solution for the subject. Someone else may have a better idea.

  9. #9
    Registered User
    Join Date
    05-08-2013
    Location
    Amsterdam
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Excel Macro lotus notes email Select range and paste in subject

    Quote Originally Posted by JOHN H. DAVIS View Post
    The only way I know would be similar to the solution for the subject. Someone else may have a better idea.
    Thanks for your help John...

  10. #10
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Excel Macro lotus notes email Select range and paste in subject

    You're welcome. Glad to help out, sorry I couldn't offer a better solution.

+ 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. Pasting range of cells into Lotus Notes Email
    By just_some_guy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-30-2010, 07:53 PM
  2. Macro for email via Lotus Notes.
    By shekar goud in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2010, 10:35 AM
  3. Copy paste the cells in lotus notes email
    By vamshi57 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-12-2010, 11:51 PM
  4. Email Multiple recipients from Range using Lotus Notes
    By Jimmy0306 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-03-2009, 08:49 PM
  5. Macro to email data range using Lotus Notes 7
    By camaro86us in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-08-2009, 06:44 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