Hello VBA Wiseguys ;-)
I'm not too familiar with VBA programming (I do have Java experience) and I would like to do the following:
From a multiple select listbox I want the selected rows to be exported in a Excel document. Furthermore I want to keep track of the rows that I have exported.
This is as far as I came:
Dim listVar As ???
Set listVar = Me!
[List0]
DoCmd.OutputTo acOutputTable, listVar , "MicrosoftExcel(*.xls)", "C:\RESULT_TABLE.xls", True
As you can see, I have the multiple select Listbox working but I don't know how or to what I can convert the List. The doc specs say:
DoCmd.OutputTo objecttype[, objectname][, outputformat][, outputfile][, autostart][, templatefile]
Objecttype - may be any of the following constants:
Thanks for any help provided !
I'm not too familiar with VBA programming (I do have Java experience) and I would like to do the following:
From a multiple select listbox I want the selected rows to be exported in a Excel document. Furthermore I want to keep track of the rows that I have exported.
This is as far as I came:
Dim listVar As ???
Set listVar = Me!
[List0]
DoCmd.OutputTo acOutputTable, listVar , "MicrosoftExcel(*.xls)", "C:\RESULT_TABLE.xls", True
As you can see, I have the multiple select Listbox working but I don't know how or to what I can convert the List. The doc specs say:
DoCmd.OutputTo objecttype[, objectname][, outputformat][, outputfile][, autostart][, templatefile]
Objecttype - may be any of the following constants:
- acOutputForm
- acOutputModule
- acOutputQuery
- acOutputReport
- acOutputTable
Thanks for any help provided !