View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Dave Peterson[_5_] Dave Peterson[_5_] is offline
external usenet poster
 
Posts: 1,758
Default Subscript Out of Range

I'd guess that that workbook that's active doesn't contain a worksheet named
"Audit results".

Common problems are typos and extra spaces (embedded or leading/trailing).



ExcelMonkey wrote:

I am getting an Subscript Out of Range Error on this line
of code:

Set sh1 = ActiveWorkbook.Sheets("Audit Results")

Why is this happening?

Thanks


--

Dave Peterson