by default,Originally Posted by barebum
[VBA]
Range("totals!hosnum").Value = "NUMBER"
[/VBA]refers to
[VBA]
ActiveWorkbook.ActiveSheet.Range("totals!hosnum").Value = "NUMBER"
[/VBA]when the workbook is opened from another workbook you need to use explicit references to the workbook and worksheet to which the code is to apply...