Hey!
NVM I SOLVED it, apparantly I declared sheetz as a string when it was actually a int! Thanks
I have two subs, when taking a variable (sheetz)from predict1 to predict and using it within worksheets(variable) it doesn't work. However if I declare sheetz within the same sub (predict) it works fine.
Following does not work:
Please Login or Register to view this content.
Please Login or Register to view this content.
Following works:
This also works:Please Login or Register to view this content.
Please Login or Register to view this content.
I've got about 10 different predict (predict1, predict2) etc subs with different values so I need it to work.
Note that other transfered values works just fine it's only the worksheet that doesn't.
The code is much shorter I've just simplified it to project the single problem.
Thank you!!
Bookmarks