I have several listboxes to maintain, and wrote several routines for various tasks. However Icannot get them to work as intended. I have a function to check whether an item is already in list:
Function IsInList (InBox as ListBox, CurItem, byref MatchRow as integer) as boolean
This function resides among other form routines,
When I call this function
if isinlist(me.inclbox, curitem, 0atchInd) I get a runtime error of incorrect type or type mismatch.
The other argument are straightforward, the problem seeems to be the listbox.
Thank you for any help
Hakan
Last edited by horbay; 05-18-2011 at 09:15 AM.
Try to declare it as MSForms.ListBox
Thank you, this solves the problem. I wish I knew hoto mark your answer as solution.
To mark your question as solved:
Click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes.
To rate my answer click on the Scale icon next to the number of my post.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks