indi visual
Member
Is there a way I can create a worksheet UDF, or some kind of function that would Dim all the Subs for the workbook?
I have about 40 Dims, and I need them to work for all of the subs.
Right now I'm copying & pasting all of the Dim data for each sub (which is lengthy and excessive), is there a way to condense this project so that all the subs reference all of my Dims for the entire workbook (by placing all of the Dims at the top in one spot for instance)?
Sub Dim_For_All_Other_Subs()
Dim Item01 As String
Dim Item02 As String etc...
Item01 = Range("A1").Value
Item02 = Range("A2").Value etc...
End Sub
I have about 40 Dims, and I need them to work for all of the subs.
Right now I'm copying & pasting all of the Dim data for each sub (which is lengthy and excessive), is there a way to condense this project so that all the subs reference all of my Dims for the entire workbook (by placing all of the Dims at the top in one spot for instance)?
Sub Dim_For_All_Other_Subs()
Dim Item01 As String
Dim Item02 As String etc...
Item01 = Range("A1").Value
Item02 = Range("A2").Value etc...
End Sub