Hi,
1. Anytime you create a workbook. You can use %H to get the current workbook name. So you can define range like:
range var1 = [%H]"Sheet1"!col("Example")
2. If the number of columns varies, you can always use wks.ncols to get the number of columns and loop over all columns and do averaging.
James