Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Maybe this,
Alt + F11 to open vb editor. Double click 'This Workbook' and paste this in Sub renameall() 'Scroll through worksheets Dim ws As Worksheet For Each ws In ThisWorkbook.Worksheets ws.Select Lastrow = Range("C65536").End(xlUp).Row Set myrange = Range("C1:C" & Lastrow) For Each c In myrange c.Offset(0, 2).Value = c.Value & "," & c.Offset(0, 1).Value Next Next ws End Sub Mike "Gemz" wrote: I would like columns C & D to concatenate with a space and a comma seperating the two words in each of my many sheets. the columns remain the same all the time. How do i do this? i tried using the concatenate formula in my macro code but it didnt work as i dont really know how to refer to all sheets. Ideally i would like a click of a button to concatenate C & D (with comma and space) in each of my sheets. thanks. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Concatenate using Macro | Excel Discussion (Misc queries) | |||
Concatenate Column C in multiple sheets into single sheet. | Excel Discussion (Misc queries) | |||
concatenate with more than 10 sheets | Excel Discussion (Misc queries) | |||
Concatenate Macro | Excel Programming | |||
Concatenate Macro | Excel Programming |