Hi
Not sure what is going on here obviously I am doing something wrong!
I have an array of worksheet names, it is very simple:
I was hoping to cycle through the sheets to insert a picture using a For Next Loop however I am getting a runtime error 424 when I try to use nameArr(i) to identify the sheet to add the picture to (i has been declared as an integer).
Same error if I just do a simple nameArr(0).Select
How should I be taking the worksheet name from the array and dropping it back into the code?
Many Thanks
Not sure what is going on here obviously I am doing something wrong!
I have an array of worksheet names, it is very simple:
VBA Code:
Dim nameArr As Variant
nameArr = Array("Pending", "Dossier", "Sheet3", "Sheet5", "Sheet4", "Sheet2")
I was hoping to cycle through the sheets to insert a picture using a For Next Loop however I am getting a runtime error 424 when I try to use nameArr(i) to identify the sheet to add the picture to (i has been declared as an integer).
Same error if I just do a simple nameArr(0).Select
How should I be taking the worksheet name from the array and dropping it back into the code?
Many Thanks