Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Vj Vj is offline
external usenet poster
 
Posts: 54
Default ShowModal property

I have 150 Excel Workbooks which contain form and modules.

Is there any way to change the showModal property of one of the form in all
the workbooks through a vba macro.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default ShowModal property

Try something like the following:

Sub AAA()
Dim WB As Workbook
Dim FName As String
FName = Dir("C:\Temp\*.xls") ' change as required
Do Until FName = ""
Set WB = Workbooks.Open(FName)
WB.VBProject.VBComponents("UserForm1") _
.Properties("ShowModal").Value = True ' or False
WB.Save
WB.Close
FName = Dir()
Loop
End Sub

Change the directory in the Dir function to your directory, and
change "UserForm1" to the name of the form.


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




"VJ" wrote in message
...
I have 150 Excel Workbooks which contain form and modules.

Is there any way to change the showModal property of one of the
form in all
the workbooks through a vba macro.



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 to get ShowModal property Andrea[_9_] Excel Programming 0 March 9th 05 11:18 AM
Value Property vs Text property augustus Excel Programming 3 October 31st 04 10:32 PM
UserForm - ShowModal Error Brian Hribek[_3_] Excel Programming 2 October 31st 04 04:11 PM
Runtime error 380: Could not set the List property. invalid property value of listbox jasgrand Excel Programming 0 October 6th 04 09:28 PM
Is there a Filename property in PrintOut property Christian[_6_] Excel Programming 4 September 3rd 04 10:12 PM


All times are GMT +1. The time now is 01:50 PM.

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"