3
Hello, I need to check the name of a module to change it later.
The name of the module changes a lot, depending on each document,and not to run all possible names, because it would take too long.
For this I need a code that reads the module names in my VBA project.
What I’ve accomplished so far is this:
Sub Mudar_cód()
ObjVbProj = Workbooks(ActiveWorkbook.Name).VBProject.VBComponents("MFPC0000").CodeModule
If ObjVbProj = "MFPC0000" Then
MsgBox "SIM"
End If
End Sub
Perfect! I’ll just fit the code into my code, but that was it.
– Leandro Felipe Moreira