Hi there,
In one of my macros, there a part which I need several times. Until now, this part is copy pasted in the code everytime it is needed. This is not very elegant. Here the code we talk about, it's about looking up specific words in an Excel sheet and spitting out in which column they are:
(note: "ConvertToLetter" is another function, converting the number of the column into the corresponding letter - column 1 = A and so on. This function works fine)![]()
Please Login or Register to view this content.
I tried like this, basically wrapping the whole block around a Function:
But this gives an error (424) on the line![]()
Please Login or Register to view this content.Any idea how to solve this?![]()
Please Login or Register to view this content.
Thanks a lot











LinkBack URL
About LinkBacks
Register To Reply

You haven't showed us how you are actually using the function, so it's hard to comment on what you did.

Bookmarks