LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Change multiple object group name

Hi all,

Whilst the code below changes all button names from GW2opt to GW4opt is
there a way to change group names e.g. change group 1a to 1a4 but using a
wildcard char to replace 1a since I have groups 1b, 1c, etc. Simply, Iwant
to add 4 to all group names!

Public Sub ChangeButtonName()
Dim OleObj As OLEObject

For Each OleObj In ActiveSheet.OLEObjects
With OleObj
.Name = Replace(.Name, "GW2opt", "GW4opt")

End With
Next OleObj
End Sub


 
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
Icon for inserted file object doesn't collapse away when closeoutline group Paul Excel Discussion (Misc queries) 2 April 1st 08 10:46 PM
Object error with Group & Ungroup in Excel Denis J. Excel Worksheet Functions 0 May 10th 07 11:26 AM
Change multiple object group name GreenBean Excel Discussion (Misc queries) 7 July 23rd 06 10:27 PM
Data, Group got error message Cannot shift object off sheet Matt Excel Discussion (Misc queries) 1 October 4th 05 12:12 AM
what object group does this reside in Ricky M. Medley Excel Programming 1 December 9th 03 11:29 PM


All times are GMT +1. The time now is 10:59 AM.

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

About Us

"It's about Microsoft Excel"