Hi,
I am not very good with vb, am a c++ person.
In excel, when you write vba macros, is there any special significance for the "This workbook" sheet? from teh name, i assumed that it is a good place to put functions that you need in many sheets... i had a function (which works fine) copied and pasted (ie all copies identical) in the vba sheets 1-3. i thought it might be a good idea to "factor this code out" into the "This workbook" thing.. somehow when i do that, the code works for one of the sheets, but not the others.. i was VERY careful to change all cell references to fully qualified references (ie with the associated sheets- eg. sheet1!A3- which are parameters passed to the functions)..
am i wrong about what the "This workbook" sheet is about?
thanks!
I am not very good with vb, am a c++ person.
In excel, when you write vba macros, is there any special significance for the "This workbook" sheet? from teh name, i assumed that it is a good place to put functions that you need in many sheets... i had a function (which works fine) copied and pasted (ie all copies identical) in the vba sheets 1-3. i thought it might be a good idea to "factor this code out" into the "This workbook" thing.. somehow when i do that, the code works for one of the sheets, but not the others.. i was VERY careful to change all cell references to fully qualified references (ie with the associated sheets- eg. sheet1!A3- which are parameters passed to the functions)..
am i wrong about what the "This workbook" sheet is about?
thanks!