Ok, So I've done my best to try and figure this out for myself but I havent gotten anywhere. Ive even searched around on here to find a thread with a similar problem that I have and havent quite found what I was looking for, ... though I did find better ways to do other things that I didnt know I could do more efficiently.
I have a VBA code that set to search though a folder where all the .xls files get saved for the company I work for. I thought all the .xls files were the same so I set up the code to just pull data out and paste it on a different page. In each of the .xls files that I want to pull data from the Sheet is named "Insulation" but there are other .xls files that dont have a sheet named Insulation so when the program gets to one of these files then it stops running and throws up an error.
To combat this I thought this would work but I'm guessing that I'm assuming that the program knows what I'm refering to and I'm not really conveying what I think I am:
SheetName = "Insulation" If SheetName = vbNullString Then
GoTo Skip2This
End If
If posting more of my code will help, I'll do that but I figure that this is the only part I'm really struggling with... and I figure less is more... because if I were to post all 200 or so lines then you might be wondering where the part is that I need help on... or maybe thats just me, I don't know.
Thanks in advance though.
I have a VBA code that set to search though a folder where all the .xls files get saved for the company I work for. I thought all the .xls files were the same so I set up the code to just pull data out and paste it on a different page. In each of the .xls files that I want to pull data from the Sheet is named "Insulation" but there are other .xls files that dont have a sheet named Insulation so when the program gets to one of these files then it stops running and throws up an error.
To combat this I thought this would work but I'm guessing that I'm assuming that the program knows what I'm refering to and I'm not really conveying what I think I am:
SheetName = "Insulation" If SheetName = vbNullString Then
GoTo Skip2This
End If
If posting more of my code will help, I'll do that but I figure that this is the only part I'm really struggling with... and I figure less is more... because if I were to post all 200 or so lines then you might be wondering where the part is that I need help on... or maybe thats just me, I don't know.
Thanks in advance though.