Vishal Bharakhada
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Why not simply use conditional code such as If-Then and/or Exit Sub statements to call the UDF only when needed?