Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Concatenate non-concurrent cells

I would like to know how I can take different cells (non concurrent)
and string them together in another cell with separators. The
CONCATENATE function can't do this. The end result that I am looking
for is to select a number of cells using a userform and listbox with
checkboxes, and have all of those values combine and be pasted into a
cell of my choosing. I have the userform, the listbox, and the
checkboxes (courtesy of John Walkenbach's book), I need to figure out
how to combine my selections into a single cell.

Thanks for your reponses in advance.


Shane

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Concatenate non-concurrent cells

Concatenate should do what you are asking. Can you give an example of the
data you are trying to concatenate and the results? Also show what incorrect
results you are getting.

" wrote:

I would like to know how I can take different cells (non concurrent)
and string them together in another cell with separators. The
CONCATENATE function can't do this. The end result that I am looking
for is to select a number of cells using a userform and listbox with
checkboxes, and have all of those values combine and be pasted into a
cell of my choosing. I have the userform, the listbox, and the
checkboxes (courtesy of John Walkenbach's book), I need to figure out
how to combine my selections into a single cell.

Thanks for your reponses in advance.


Shane


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Concatenate non-concurrent cells

I should have been more specific. I would like to have them divided by
commas. I have found a few functions where I can put commas in, but if
I choose cells that are non-concurrent I get a #VALUE error.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Concatenate non-concurrent cells

=A1&","&B1&","&C1

etc.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Shane" wrote in message
oups.com...
I should have been more specific. I would like to have them divided by
commas. I have found a few functions where I can put commas in, but if
I choose cells that are non-concurrent I get a #VALUE error.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Concatenate non-concurrent cells

I would like to add to vba code so I can string together cell
selections chosen using checkboxes from a listbox in a userform



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Concatenate non-concurrent cells

See one answer with a macro in excel.newusers

No listboxes, just select the cells from the worksheet.


Gord Dibben MS Excel MVP

On Wed, 15 Aug 2007 21:56:04 -0000, Shane wrote:

I would like to add to vba code so I can string together cell
selections chosen using checkboxes from a listbox in a userform


  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Concatenate non-concurrent cells

So it is just

myVar = If Checkbox1.Value Then Range"A1").Value & ","
myVar = myVar & If Checkbox2.Value Then Range"B1").Value & ","
myVar = myVar & If Checkbox3.Value Then Range"C1").Value & ","
'etc.
myVar = Left$(myVar,Len$(myVar)-1)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Shane" wrote in message
ups.com...
I would like to add to vba code so I can string together cell
selections chosen using checkboxes from a listbox in a userform



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
updating concurrent data on a worksheet and adding new row Northern Bytes New Users to Excel 3 January 20th 10 08:31 PM
How many concurrent nested IF statments does Excel allow? Loudmouth Excel Discussion (Misc queries) 8 May 4th 06 10:04 PM
Concurrent users to a worksheet database? count Excel Programming 0 July 1st 04 10:58 PM
Concurrent Calls Andrew[_43_] Excel Programming 1 May 20th 04 09:25 PM
How to make it a Concurrent (Multi-user) spreadsheet lothario[_35_] Excel Programming 2 November 1st 03 09:51 AM


All times are GMT +1. The time now is 11:55 AM.

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

About Us

"It's about Microsoft Excel"