Babycat
Member
- Local time
- Today, 16:12
- Joined
- Mar 31, 2020
- Messages
- 285
Hi all
I have many forms and modules in VBA code. My code usually has a line in comment mode like
thus, this error handler is temporary disabled during the code development.
Now, I want to replace above line by using a compiler switch such as
Is there any way to do it (Ctrl+H) in VBA Editor for multiple modules?
I only can think about manually copy one by one to word or txt file, then use Ctrl+H in these editors. But, this is kind of time consuming...
I have many forms and modules in VBA code. My code usually has a line in comment mode like
Code:
'On Error GoTo ErrorHandler
Now, I want to replace above line by using a compiler switch such as
Code:
#If DEVMODE Then
#Else
On Error GoTo ErrorHandler
#End If
Is there any way to do it (Ctrl+H) in VBA Editor for multiple modules?
I only can think about manually copy one by one to word or txt file, then use Ctrl+H in these editors. But, this is kind of time consuming...