Hi all,
I've never quite mastered the idea of passing arguments between subs and functions. I have a project right now where I am writing this same bit of code over and over, for different parts of the macro:
It basically checks each sheet in the current workbook to see if any have the name specified, in order to avoid duplicating sheets. I think I can write this as a function that would take as an argument the desired name and would return TRUE/FALSE if that sheet existed, and an integer representing the sheet # for that sheet. However, I can't figure out how to get a function to return multiple values. I tried the code below, based on some Microsoft examples, but it doesn't work because I don't know how to call the function with the intent of using one or both of its outputs:Please Login or Register to view this content.
Can someone point me in the direction of a good, beginner's guide to functions w/ multiple outputs?Please Login or Register to view this content.
Bookmarks