HYPERLINK formula or link VBA Question

Torrez74

New Member
Joined
Jul 30, 2010
Messages
30
Right now I have a Hyperlink with multiple CC's that I would like to put in a list on the worksheet for ease of changing addresses. At the moment I have a link and the addresses are Separated in the Subject Field of the Edit Hyperlink dialog window as so; For%20Blank%20Tomorrow&cc=matt @Blank.com;Elisa @Blank.com

I would like to change this to something like; For%20Blank%20Tomorrow&cc= Cell Z1; Cell Z2

The other solution I have is to add a Hyperlink formula as so;
=HYPERLINK("mailto:" & Q4 & "?cc="& AH3& ";"& AH4& ";"& AH5& ";"& AH6& ";"& AH7&"&subject="& AH1 & "&body=" & AH2, "Order")


Here is where it gets tricky I also have a VBA script that works with the first scenario like this;

Sub SM_sort()
'
' SM_sort Macro
'
Range("Q5").Select
Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
ActiveSheet.Range("L4:O42").AutoFilter Field:=4, Criteria1:="SM"
ActiveSheet.Range("L4:O42").AutoFilter Field:=2, Criteria1:="<>"
Range("L4:M43").Select
Selection.Copy
End Sub

But I am having trouble getting it to activate the Hyperlink in the Formula set up. can someone please help with this challenge?
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,224,816
Messages
6,181,141
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top