Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How can I rename a module in VBA?


I cant work out how to rename on of my sub modules?

Does anyone know whether this is possible?

thank

--
CarolineHedge
-----------------------------------------------------------------------
CarolineHedges's Profile: http://www.excelforum.com/member.php...fo&userid=3570
View this thread: http://www.excelforum.com/showthread.php?threadid=55492

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default How can I rename a module in VBA?

In the VBA editor, select your module in the Project Explorer
(CTLR+R to view), press F4 to display the properties window and
change the name there.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"CarolineHedges"
<CarolineHedges.29ur7g_1151061617.0202@excelforu m-nospam.com
wrote in message
news:CarolineHedges.29ur7g_1151061617.0202@excelfo rum-nospam.com...

I cant work out how to rename on of my sub modules?

Does anyone know whether this is possible?

thanks


--
CarolineHedges
------------------------------------------------------------------------
CarolineHedges's Profile:
http://www.excelforum.com/member.php...o&userid=35705
View this thread:
http://www.excelforum.com/showthread...hreadid=554928



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default How can I rename a module in VBA?

Hi Caroline

Are you able to rename the others ? What is different ?

Best wishes Harald

"CarolineHedges"
<CarolineHedges.29ur7g_1151061617.0202@excelforu m-nospam.com skrev i
melding news:CarolineHedges.29ur7g_1151061617.0202@excelfo rum-nospam.com...

I cant work out how to rename on of my sub modules?

Does anyone know whether this is possible?

thanks


--
CarolineHedges
------------------------------------------------------------------------
CarolineHedges's Profile:

http://www.excelforum.com/member.php...o&userid=35705
View this thread: http://www.excelforum.com/showthread...hreadid=554928



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default How can I rename a module in VBA?

Try:

Sub Whats_In_A_Name()
ThisWorkbook.VBProject.VBComponents("Module1").Nam e = "Caroline"
End Sub
--
Gary's Student


"CarolineHedges" wrote:


I cant work out how to rename on of my sub modules?

Does anyone know whether this is possible?

thanks


--
CarolineHedges
------------------------------------------------------------------------
CarolineHedges's Profile: http://www.excelforum.com/member.php...o&userid=35705
View this thread: http://www.excelforum.com/showthread...hreadid=554928


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How can I rename a module in VBA?


Thanks, it worked perfectly.


--
CarolineHedges
------------------------------------------------------------------------
CarolineHedges's Profile: http://www.excelforum.com/member.php...o&userid=35705
View this thread: http://www.excelforum.com/showthread...hreadid=554928



Reply
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
Rename a module Glen Mettler[_2_] Excel Programming 2 December 20th 05 01:11 AM
Calls from sheet module to ThisWorkbook module quartz[_2_] Excel Programming 2 June 23rd 05 03:37 PM
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 01:29 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"