PDA

View Full Version : type mismatch on application.run



DevanG
06-23-2011, 06:00 AM
Application.Run ("'fundselect.xls'!ManagementFee.mgmtfee")

This returns as a type mismatch. it goes filename!module.sub -- this works for another sub RIGHT below it. same syntax.

Kenneth Hobs
06-23-2011, 08:26 AM
Most likely, you should not have used ()'s. If you do, prefix your command line with Call.

DevanG
06-23-2011, 08:46 AM
Most likely, you should not have used ()'s. If you do, prefix your command line with Call.

no difference.. Calls don't work either -- object error

Kenneth Hobs
06-23-2011, 09:05 AM
Then you have an issue that was not considered in your Sub. We would need to see the Sub code and/or a workbook to test.

DevanG
06-23-2011, 10:26 AM
Then you have an issue that was not considered in your Sub. We would need to see the Sub code and/or a workbook to test.

OK. Well i didn't consider the sub to not work since its part of someone else's workbook that works fine. Its not private, so I'm just borrowing it. The line after this one is the same for another sub in the other workbook.