$$Excel-Macros$$ Re: Comma Concatenator Macro

2009-05-29 Thread bala
hi, Sub test() icount = Len(ThisWorkbook.Name) icount = icount - 4 strtest = Left(ThisWorkbook.Name, icount) ThisWorkbook.SaveAs (ThisWorkbook.Path & "\" & strtest & " " & Format (Date, "dd-mmm-") & ".xls") End Sub with Regards Bala On May 27, 5:17 pm, Dhartikumar Sahu wrote: > hi bala >

$$Excel-Macros$$ Re: Comma Concatenator Macro

2009-05-27 Thread Dhartikumar Sahu
hi bala can u suggest me for saving the file i want to save as file name with current date. can u give me a VBA Code please On Wed, May 27, 2009 at 2:13 PM, bala wrote: > > Hi, > Try this code > > > Range("A1").select > > while Activecell.value <> "" > if len(Activecell.value) >3

$$Excel-Macros$$ Re: Comma Concatenator Macro

2009-05-27 Thread norie
Here's a UDF. Function MakeList(rng As Range) As String Dim arrVals() Dim I As Long arrVals = rng.Value arrVals = Application.Transpose(arrVals) For I = LBound(arrVals) To UBound(arrVals) arrVals(I) = Format(arrVals(I), "") Next I MakeList = Join(arrVals, ",")

$$Excel-Macros$$ Re: Comma Concatenator Macro

2009-05-27 Thread Chris Spicer
Rick, You weren't far off - you just need to add an iif statement to your concatenation (see below). Regards, Chris Spicer www.Technicana.com P.S. With regards the line that reads vSQL = vCell, are you sure this is what you're trying to achieve? It seems to be that a blank cell in your data w

$$Excel-Macros$$ Re: Comma Concatenator Macro

2009-05-27 Thread bala
Hi, Try this code Range("A1").select while Activecell.value <> "" if len(Activecell.value) >3 then Activecell.offset(0,1).value = Activecell.value else Activecell.offset(0,1).value = 0 & Activecell.value end if Activecell.offset(1,0).select wend Regards Bala On May 27, 6: