How to associate and mass edit all fields between 2 columns?

illuminate

New Member
Joined
May 29, 2015
Messages
2
Hello,
I have been trying for a while to achieve this without any success:

1. https://www.dropbox.com/s/95crj0t58swk610/Screenshot 2015-05-28 22.27.17.png?dl=0 in this scenario take data in B column and add them all into the field B138 with ";" separation. (example: Loop;Open Loop;Padded Open Loop;Padded T-Bar)


A) if there is something like this https://www.dropbox.com/s/sigqa4oi5gqb8dc/Screenshot 2015-05-28 22.29.41.png?dl=0 then make sure it does the #1 function only to the options that belong to the associated A column value. (notice the separate colors https://www.dropbox.com/s/v24a3ezk0xwyjv9/Screenshot 2015-05-28 22.32.31.png?dl=0)

I am not sure if this will be a single VBA or multiple VBA scripts.
Thank you
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
I generally don't like to download files. can you post a portion of you code/workbook that shows the problem. See link to Excel Jeanie in my sig.

For #1, assuming column B data starts in B1 and ends before B137, with no blank cells try:

Code:
Option Explicit

Sub CopyBDataToB138()

    Dim rngCopy As Range
    Dim rngCell As Range
    Dim rngDest As Range
    
    Set rngCopy = Intersect(Columns(2), Range("B1").CurrentRegion)
    Set rngDest = Range("B138")
    
    For Each rngCell In rngCopy
        rngDest.Value = rngDest.Value & ";" & rngCell.Value
    Next
    
    Set rngCopy = Nothing
    
End Sub

If you explain this "only to the options that belong to the associated A column value" I can make a guess at #2
 
Upvote 0

Forum statistics

Threads
1,215,043
Messages
6,122,812
Members
449,095
Latest member
m_smith_solihull

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top