Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
can anyone help me on this issue
I have two macros, I have created one varible in first macro i want to use that variable in second macro with out creating the variable
//First Macro
Sub exportfirst
set f = ActiveDocument.GetField("Managed Segment L1 Desc")
End sub
//Second Macro
Sub Copy_Chart_Obj
if IsEmpty(f.GetSelectedValues) then
set pv = f.GetSelectedValues // the variable "f" i want to use directly here
else
set pv = f.GetPossibleValues(1000)
end if
End sub
can anyone help me on this issue please as soon as possible
In Sub routine ,
the scope and lifetime of variable is up to that subroutine only. but if you want use sames variable in Multiple Sub routine you have to delare in applivation.
hi Sunil
Thanks for ur reply
Can you please provide a sample application for better understanding
Thanks,
Pavan