P
Peter L Kessler
Hi Group
I don't know if I'm posting to the right place here but perhaps someone
could help me out.
I've just read the Word MVP feature "Load a ListBox from a Named Range in
Excel using DAO." I needed it to display the data from an Excel Range in my
Word 2000 VBA listbox, which it does. But, the line:
Set myRecordSet = myDatabase.OpenRecordset("SELECT * FROM `DataList`")
'DataList is the named range
causes me a problem in that I need to be able to specify the range name
elsewhere and apply it here as a string. This line won't work that way, so
would anyone be able to show me how to do this, please?
Best wishes
Peter
Kessler Associates
E: (e-mail address removed)
W: http://homepages.tesco.net/~plk33/plk33/index.htm
I don't know if I'm posting to the right place here but perhaps someone
could help me out.
I've just read the Word MVP feature "Load a ListBox from a Named Range in
Excel using DAO." I needed it to display the data from an Excel Range in my
Word 2000 VBA listbox, which it does. But, the line:
Set myRecordSet = myDatabase.OpenRecordset("SELECT * FROM `DataList`")
'DataList is the named range
causes me a problem in that I need to be able to specify the range name
elsewhere and apply it here as a string. This line won't work that way, so
would anyone be able to show me how to do this, please?
Best wishes
Peter
Kessler Associates
E: (e-mail address removed)
W: http://homepages.tesco.net/~plk33/plk33/index.htm