syntax for call a sub

rob_sheeds

Board Regular
Joined
Dec 9, 2010
Messages
57
Hi,
I have a sub that needs calling....

End With
Mail_workbook_Outlook_1
End Sub

(this obviuously doesnt work) can someone tell me what im missing.
CHeers
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Is that the name of the sub, it should work if you have a macro with that name.

Although, not required, I like to use the reserved word of Call which helps identify exactly what I am doing.

Call MyMacro
 
Upvote 0
i tried

End With
Call Mail_workbook_Outlook_1
End Sub

but that didnt work?
Maybe the sub isnt in this book? Would that be why?
 
Upvote 0
It's possible.

Try this...

Highlight Mail_workbook_Outlook_1 >> Shift + F2

If Mail_workbook_Outlook_1 is in the workbook your cursor will jump to the procedure.
 
Upvote 0
It's possible.

Try this...

Highlight Mail_workbook_Outlook_1 >> Shift + F2

If Mail_workbook_Outlook_1 is in the workbook your cursor will jump to the procedure.



This might be the best news I have had tonight. I didn't know about shift F2
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,756
Members
452,940
Latest member
rootytrip

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