LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Rename Module via VBA

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
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i rename a sheet if the rename tab is inactive? Nelson Excel Worksheet Functions 1 March 3rd 10 10:28 AM
How can I rename a module in VBA? CarolineHedges[_3_] Excel Programming 4 June 23rd 06 02:28 PM
Rename a module Glen Mettler[_2_] Excel Programming 2 December 20th 05 01:11 AM
can you rename a module? JOHN SMITH Excel Discussion (Misc queries) 1 March 22nd 05 05:49 PM
Rename Module djh Excel Programming 6 March 15th 05 06:02 PM


All times are GMT +1. The time now is 06:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"