bryanbayfield
Technical User
This is bloody infuriating.
I've designed an add-in that incorporates an address book. The entries in the address book are stored in one of the sheets in the add-in. The user is meant to interface with the address book by means of a user form - address book entries are shown in a list box on the form.
I've tried to populate the list box with the entries from the AddressBook sheet of the add-in workbook, like so:
set ws = ThisWorkbook.Sheets("AddressBook"
ws.range("a2", ....).sort Key1:=...
Excel doesn't even get to the sort command. It stops at the first command saying that the range methoid of teh workbook object has failed.
I'm having problems in other areas as well trying to reference back to the workbook which constitutes the add-in. It doesn't make any sense! X-)
Help much appreciated.
Thanks.
Bryan.
I've designed an add-in that incorporates an address book. The entries in the address book are stored in one of the sheets in the add-in. The user is meant to interface with the address book by means of a user form - address book entries are shown in a list box on the form.
I've tried to populate the list box with the entries from the AddressBook sheet of the add-in workbook, like so:
set ws = ThisWorkbook.Sheets("AddressBook"
ws.range("a2", ....).sort Key1:=...
Excel doesn't even get to the sort command. It stops at the first command saying that the range methoid of teh workbook object has failed.
I'm having problems in other areas as well trying to reference back to the workbook which constitutes the add-in. It doesn't make any sense! X-)
Help much appreciated.
Thanks.
Bryan.