When my code executes the following line, I'm getting the "Select method of Range class failed" error message
Range(Workbooks(FileName).Worksheets(ShtName).Cells(1, 1), Workbooks(FileName).Worksheets(ShtName).Cells(LastRow, 30)).Select
I'm using variables for the workbook, sheet and last data row. Why am I getting this error message?
My machine is using Windows 10 and Office 2016. Thanks for the help....