Apr 11, 2006 #1 spence27 Technical User Joined Feb 2, 2002 Messages 28 Location GB Does Excel have a user form collection, and if so how would i loop through each user form Excel 2002 VBA XP SP2
Does Excel have a user form collection, and if so how would i loop through each user form Excel 2002 VBA XP SP2
Apr 11, 2006 #2 rmikesmith Technical User Joined Apr 29, 2002 Messages 1,215 Location US Code: Dim oForm As UserForm For Each oForm In UserForms Debug.Print oForm.Caption Next oForm According to the Excel VBA Help, the Userforms collection holds only those Userforms that are loaded. Regards, Mike Upvote 0 Downvote
Code: Dim oForm As UserForm For Each oForm In UserForms Debug.Print oForm.Caption Next oForm According to the Excel VBA Help, the Userforms collection holds only those Userforms that are loaded. Regards, Mike