Link to home
Start Free TrialLog in
Avatar of Vishal Bharakhada
Vishal BharakhadaFlag for India

asked on

How to comment/uncomment vba code using VBA Code

Hi ,
Problem statement : We are having a UDF in our EXCEL 2016 and a subroutine. UDF at present commented. After execution of few lines in subroutine we want to uncomment UDF using vba code only.

Please suggest whether it is possible using code, if it is then would request to provide code for the same.

Regards,
Vishal G. B.
ASKER CERTIFIED SOLUTION
Avatar of Martin Liss
Martin Liss
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Why not simply use conditional code such as If-Then and/or Exit Sub statements to call the UDF only when needed?