In the attached there is a listbox in the vicinity of Cell D1 on the pivot sheet. I woulds like to populate it with the contents of Lookups!A2:A6. I realize I can do this without VBA, however, when I copy the sheet to a new workbook, the source data links back to the old workbook (the one that is posted here). If this workbook isn't available and open then the listbox is blank.
I need to populate it with "hard" values so it doesn't reference back to a workbook that won't be available to the end user. I think VBA is the only solution for this. If there is the equivalent of break link and use values I'll take that solution. If there is a way to assign the range to display to the local table instead of the one in the generating workbook, I'll take that too.
Here is my code:
I get the error Compile Error: Method or data member not found on:Please Login or Register to view this content.
shtP.ListBox1.AddItem "FOO"
It specifically higlights ListBox1
However this is the syntax all the articles I've found so far are using.
Bookmarks