Option Explicit ValidationMode = True InteractiveMode = im_Batch Dim mdl ' current model ' get the current model Set mdl = ActiveModel If (mdl Is Nothing) Then MsgBox "No model opened" ElseIf Not mdl.IsKindOf(PdPDM.cls_Model) Then MsgBox "The current model is not a PDM" Else ' call the handler ProcessFolder mdl End If ' invoked handler Private sub ProcessFolder(folder) Dim Tab 'table to process for each Tab in folder.Tables ' if not Tab.isShortcut then ' Tab.code = tab.name 'Table name processing, add a prefix in front, lowercase letters Tab.name= UCase(Tab.name) Tab.code= UCase(Tab.code) Dim col ' column to process for each col in Tab.columns 'Column name and code are all lowercase, uppercase poem UCase col.code= UCase(col.code) col.name= UCase(col.name) next 'end if next ' handle the view ' Dim view 'running view ' for each view in folder.Views ' if not view.isShortcut then ' view.code = view.name ' end if ' next ' recurse into sub-packages Dim f ' sub folder For Each f In folder.Packages if not f.IsShortcut then ProcessFolder f end if Next end sub