Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 162
Default Transfer data from List Box

I have created a userform with a list box. I have everything working fine
except the OK button. After highlighting the items on the list I want the OK
button to find the next open cell in column B and transfer the highlighted
items. So what I need help with is the code for transferring items from the
listbox to column B on the spreadsheet.

Any help is appreciated

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 595
Default Transfer data from List Box

Ronbo

Dim rNextCell as Range

'Find next open cell in column B
Set rNextCell = Sheet1.Range("B65536").End(xlUp).Offset(1,0)

'Write value
rNextCell.Value = Me.ListBox1.Value

If you have a multiselect listbox, see here
http://www.dicks-blog.com/archives/2...elect-listbox/

--
Dick Kusleika
MVP - Excel
Excel Blog - Daily Dose of Excel
www.dicks-blog.com

"Ronbo" wrote in message
...
I have created a userform with a list box. I have everything working fine
except the OK button. After highlighting the items on the list I want the

OK
button to find the next open cell in column B and transfer the highlighted
items. So what I need help with is the code for transferring items from

the
listbox to column B on the spreadsheet.

Any help is appreciated



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
transfer data from 3x15 grid to a single list? Roady Excel Discussion (Misc queries) 3 October 18th 08 02:24 AM
excel data in list N1, N7, N13 etc want to transfer to A1, A2, A3 Weejock71 Excel Worksheet Functions 1 July 2nd 08 05:07 PM
Schedule - list transfer Macmo Excel Discussion (Misc queries) 1 June 9th 06 10:41 PM
Transfer Items to a list with no duplicates [email protected] Excel Worksheet Functions 1 March 30th 05 10:30 PM
How do i transfer certain lines from one list to another matt_hull1979 Excel Worksheet Functions 3 February 23rd 05 10:30 PM


All times are GMT +1. The time now is 05:20 AM.

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"