Hi All,

i am not so great VBA as i am from C# background and stuck in this below issue from couple of days.

i know this error occurs when a cell value is more than 255 characters , unfortunatly am not able to come over of it.

can someone please help me to tweak this code. (error occurs at application .transpose)

Dim DT
ar = SWB.Sheets("Temp").Cells(1, 1).CurrentRegion.Value Set DT = CreateObject("Scripting.Dictionary") With DT .CompareMode = 1 ReDim v(1 To UBound(ar, 2)) For i = 2 To UBound(ar, 1) For n = 1 To UBound(ar, 2) str = str & Chr(2) & ar(i, n) v(n) = ar(i, n) Next If .exists(str) Then .Item(str) = Empty Else .Item(str) = v End If str = "" Next Dim nws As Worksheet Resultwb.Activate Set nws = Resultwb.Worksheets.Add(After:=Worksheets(Worksheets.Count)) For Each arr In .keys If IsEmpty(.Item(arr)) Then .Remove arr Next Var = .Items: j = .Count End With With nws.Range("a1").Resize(, UBound(ar, 2)) .CurrentRegion.ClearContents .Value = ar If j > 0 Then .Offset(1).Resize(j).Value = Application.Transpose(Application.Transpose(Var)) End If