I would like to use the same variables in a number of procedures. Can I not declare those as Public and Constant prior to my procedures?
i.e.I know that I can declare them here, but am trying to avoid (re)setting them over and over again within each procedure. Any help or guidance appreciated.![]()
Option Explicit Option Base 1 Public Const wb as Workbook = ThisWorkbook Public Const ws1 as Worksheet = wb.Sheets("Sheet1") Public Const ws2 as Worksheet = wb.Sheets("Sheet2") ...
Bookmarks