Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
pm pm is offline
external usenet poster
 
Posts: 122
Default listbox saving ?

Hi I created a listbox list by additem method. I like to be able to save this
list when user clicks on a Button and access next time they open the form.
But there seems to no method to save items into list. Any one knows a way?
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default listbox saving ?

How about saving it into another worksheet (hidden??)

pm wrote:

Hi I created a listbox list by additem method. I like to be able to save this
list when user clicks on a Button and access next time they open the form.
But there seems to no method to save items into list. Any one knows a way?
Thanks


--

Dave Peterson

  #3   Report Post  
Posted to microsoft.public.excel.programming
pm pm is offline
external usenet poster
 
Posts: 122
Default listbox saving ?

I just wondered if theres are any other ways. Now I did try this with
worksheet range
Set r = ActiveWorkbook.ActiveSheet.Range("A1:A30")
Me.ListBox1.RowSource = r
But that gives an error.I guess I'm not setting rowsource in right way ?


"Dave Peterson" wrote:

How about saving it into another worksheet (hidden??)

pm wrote:

Hi I created a listbox list by additem method. I like to be able to save this
list when user clicks on a Button and access next time they open the form.
But there seems to no method to save items into list. Any one knows a way?
Thanks


--

Dave Peterson


  #4   Report Post  
Posted to microsoft.public.excel.programming
pm pm is offline
external usenet poster
 
Posts: 122
Default listbox saving ?

Thanks, I think I figured

"pm" wrote:

I just wondered if theres are any other ways. Now I did try this with
worksheet range
Set r = ActiveWorkbook.ActiveSheet.Range("A1:A30")
Me.ListBox1.RowSource = r
But that gives an error.I guess I'm not setting rowsource in right way ?


"Dave Peterson" wrote:

How about saving it into another worksheet (hidden??)

pm wrote:

Hi I created a listbox list by additem method. I like to be able to save this
list when user clicks on a Button and access next time they open the form.
But there seems to no method to save items into list. Any one knows a way?
Thanks


--

Dave Peterson


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default listbox saving ?

Me.ListBox1.RowSource = r.Address(external:=True)

--
Regards,
Tom Ogilvy


"pm" wrote in message
...
I just wondered if theres are any other ways. Now I did try this with
worksheet range
Set r = ActiveWorkbook.ActiveSheet.Range("A1:A30")
Me.ListBox1.RowSource = r
But that gives an error.I guess I'm not setting rowsource in right way ?


"Dave Peterson" wrote:

How about saving it into another worksheet (hidden??)

pm wrote:

Hi I created a listbox list by additem method. I like to be able to

save this
list when user clicks on a Button and access next time they open the

form.
But there seems to no method to save items into list. Any one knows a

way?
Thanks


--

Dave Peterson






  #6   Report Post  
Posted to microsoft.public.excel.programming
pm pm is offline
external usenet poster
 
Posts: 122
Default listbox saving ?

Thanks, this is better

"Tom Ogilvy" wrote:

Me.ListBox1.RowSource = r.Address(external:=True)

--
Regards,
Tom Ogilvy


"pm" wrote in message
...
I just wondered if theres are any other ways. Now I did try this with
worksheet range
Set r = ActiveWorkbook.ActiveSheet.Range("A1:A30")
Me.ListBox1.RowSource = r
But that gives an error.I guess I'm not setting rowsource in right way ?


"Dave Peterson" wrote:

How about saving it into another worksheet (hidden??)

pm wrote:

Hi I created a listbox list by additem method. I like to be able to

save this
list when user clicks on a Button and access next time they open the

form.
But there seems to no method to save items into list. Any one knows a

way?
Thanks

--

Dave Peterson





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
listbox B conditional of input in Listbox A Kim K Excel Discussion (Misc queries) 1 October 31st 06 08:27 PM
listbox.value not equal to listbox.list(listbox.listindex,0) ARB Excel Programming 0 October 22nd 03 12:46 AM
Listbox does not support saving Jon[_12_] Excel Programming 2 October 9th 03 10:24 AM
Is refreshing listbox rowsource in listbox click event possible? Jeremy Gollehon[_2_] Excel Programming 4 September 25th 03 06:45 PM
Saving listbox values to a sheet then repopulate Stuart[_5_] Excel Programming 4 September 15th 03 09:17 PM


All times are GMT +1. The time now is 02:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"