This one is strange.
i got my code to work for C:\Sample.XLS for the workbook Name1 (thanks to all who helped). i attempted to do the same formatting for workbook Name2, and the strangest thing happened (probably not strange to you, but strange to me). The code ran through to the Exit Sub...