Outlook VBA script will not run -
i created vba script in outlook 2010 way run clicking on play button while in outlook vba indicated in image below:
why won't run when select vba script menu indicated in image below? have signed vba script using "selfcert.exe".
the other 2 vba scripts in list run when selected menu. below code of vba script not run:
sub replaceips() dim insp inspector dim obj object set insp = application.activeinspector set obj = insp.currentitem obj.htmlbody = replace(obj.htmlbody, "192.168.1", "255.255.255") set obj = nothing set insp = nothing end sub
the above vba script supposed find , replace instances of "192.168.1" "255.255.255" in body of email being composed.
a module name can't contain macro of same name. rename module replaceips
else or rename macro/subroutine replaceips
else. if both same won't resolve properly
Comments
Post a Comment