Hello everybody,
it is possible to insert an input box in a .To mail to choose the recipients which are in column S
Please Login or Register to view this content.
Hello everybody,
it is possible to insert an input box in a .To mail to choose the recipients which are in column S
Please Login or Register to view this content.
Insert here
.to = "[email protected]" '<<< destinatari
a inputbox for choose recipients in column S
.
Please Login or Register to view this content.
Hi logit,
.to = emailAddr
How does this work?
i can't try the macro here at home, i have excel 2007.
In the my office i have excel 365.
How is the macro set up does it work with excel 365?
But with this I can choose between the names of column S or I have to put the names by hand...
Please Login or Register to view this content.
.
Input the email address manually.
it is possible to insert a drop-down menu to choose the names that are in the range S5:S5
or with define name = utenti (range S5:S50)
.
Is the ultimate goal to select ONE EMAIL ADDRESS ... or are you wanting the ability to
select MORE THAN ONE address to be included in the email TO FIELD ?
Yes logit
Is the ultimate goal to select ONE EMAIL ADDRESS ... or are you wanting the ability to
select MORE THAN ONE address to be included in the email TO FIELD
the mail andress are in the range S5:S50
On the net i found this.
Here at home I don't have the opportunity to try the macro I have excel 2007Please Login or Register to view this content.
I entered this change twice
once per .To
once for .CC
it's right?
Please Login or Register to view this content.
.
Ok ... I've been trying to use your existing workbook and code for the purposes of editing to obtain the goal you are seeking.
I have not looked at your last post with the new code. Sorry.
The following does work with your existing workbook. But I removed most all of your existing code just to get it to work
as you are wanting. You will need to add back in the other lines of code.
Please Login or Register to view this content.
I don't have a chance to try the macro
but in
.To = toList
how many users / names are there?
.
Looking at the attached workbook download .... you will need to double click the cell in Column R adjacent to the email address in Column S that you want the
email sent to. It's like checking off which email addresses you want the email to be sent.
When you double click the cell in Column R again, the check mark goes away. It's an easy method to select and de-select the email addresses you want.
Try the workbook.
Now I have seen how it works with double click that I had not seen
I made a change (which doesn't work)
I also added
.To = toList1
.CC = toList2 '<<<<
mistake here
Next i1
Next i2
error here too for double click
Private Sub Worksheet_BeforeDoubleClick( _
ByVal Target As Range, Cancel As Boolean)
Dim rInt As Range
Dim rCell As Range
Set rInt = Intersect(Target, Range("R5:R500"))
Set rInt = Intersect(Target, Range("T5:T500")) '<<<<<<
If Not rInt Is Nothing Then
Hi,
hello i corrected is correct?
why does double_click no longer work in all cells of the sheet?
Please Login or Register to view this content.
Last edited by john_cash; 10-11-2020 at 03:18 AM.
.
I just ran your attached workbook.
The double-click runs fine here.
The double click it must work in all cells now with the macro
Private Sub Worksheet_BeforeDoubleClick( _
ByVal Target As Range, Cancel As Boolean)
it works only in macro cells in all others the sheet is disabled
.
Sorry ... everything works here.
I don't what to advise why it doesn't work there.
In the attached file in sheet 2 double_click works
in sheet 1 only in the yellow columns
.
Paste the same code in the Sheet2 module :
Please Login or Register to view this content.
Maybe I mean it wrong.
The double_click of the mouse does not work in sheets with macros.
It only works in cells inserted into macros
.
Sorry for the confusion. I know you are trying to explain as best as you can ... however, I don't understand
what you mean.
Please try explaining a different way.
Hi logit
I tried the macro Sub eMail() in the my office with excel 365 but sending does not work
error does not enter names in outlook
Last edited by john_cash; 10-12-2020 at 03:07 AM.
.
Try this edited version of a previous macro I posted. Look at the .CC = field in the code.
Run the attached example :
Please Login or Register to view this content.
.CC
not double click?
.
No. Simply enter the email address you want in the column as shown in the example workbook.
Hi logit,
this macro it's your first post #11 modified
becausePlease Login or Register to view this content.
compilation error
invalid reference to next control variable
here
Next i '<<<<
Next j
.
I recommend to not return to your latest version of the macro.
Take the last posted version (Post #24) and re-build from there ... adding in the other code EXCEPT leaving out the DOUBLE CLICK for the CC EMAIL.
O.k. logit
tomorrow I edit your new macro
Hi logit
i edited your new macro.
I inserted my part of the macro inserted in the ===
I think I have something wrong.
Now Outlook does not appear and the attachment must be inserted.
john
.
Disregard all previous macro code.
Paste this into a REGULAR MODULE :
Create a new folder on your desktop and name it EMAILPlease Login or Register to view this content.
Place the attached workbook in that folder.
Refer to attached file ....
Hi logit,
tomorrow I try the new modification.
thank you
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks