LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Printing Form Component information

Paste this code in a standard module and point it to your userform.

Sub UserformDoc()
For Each Control In UserForm1.Controls
With Control
Debug.Print .Name
Debug.Print .Top
Debug.Print .Left
Debug.Print .Height
Debug.Print .Width
End With
Next
End Sub



"DavidP" wrote in message
...
I am creating a form which will have quite a few components, frames,

option buttons, Command boxees etc. When I have done similar things in VB
it was easy to
print an inventory of the module with all the relevant details of the

components. e.g. for option buttons you could see the names, height, width,
top, font
etc. Can this be done with excel VBa.
I haven't a clue how to start but I assume it would have to be a macro.

If this is the case could someone give me a starter outline please. I don't
mind if
the info is on a created excel sheet or on to a new print file. Ideally

for every component in my user form I would like to print say the height,
width and top
for starters. If someone could start me on that I think I should be able

to work out the rest for other properties

Thanks

DavidP



 
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
User Form Information stockwell43 Excel Discussion (Misc queries) 4 March 2nd 09 01:16 PM
How do I put my information form Excel into a Word Merge Form? Jackie Excel Discussion (Misc queries) 2 March 16th 06 08:16 PM
Linking information form one worksheet to another lawmere Excel Discussion (Misc queries) 7 November 10th 05 10:24 AM
I created a form on excel. want to edit the form without printing Oz Excel Discussion (Misc queries) 1 September 1st 05 08:18 PM
How can I have information from a form I created to automatically. group3 Excel Discussion (Misc queries) 1 December 29th 04 05:42 PM


All times are GMT +1. The time now is 07:38 PM.

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"