Thread
:
Rename Module via VBA
View Single Post
#
2
Posted to microsoft.public.excel.programming
Ardus Petus
external usenet poster
Posts: 718
Rename Module via VBA
Works by me!
HTH
--
AP
"Gary''s Student" a écrit dans le
message de news:
...
While running:
Sub rename_it()
ThisWorkbook.VBProject.VBComponents("Module1").Nam e = "new_check"
End Sub
I get a "1004" error
"Programmatic access to Visual Basic Project is not trusted"
I feel that i have earned the trust of my computer and my own files.
How do I avoid this error.
p.s. I can still re-name a module manually in the editor.
--
Gary's Student
Reply With Quote
Ardus Petus
View Public Profile
Find all posts by Ardus Petus