Mar 5, 2002 #1 ftpdoo Programmer Aug 9, 2001 202 GB Hi, I've got a string which contains a binary number ie: " 0 0 1 0" But I want to remove the spaces to simply leave "0010" Please help, Jonathan
Hi, I've got a string which contains a binary number ie: " 0 0 1 0" But I want to remove the spaces to simply leave "0010" Please help, Jonathan
Mar 6, 2002 1 #2 wadjssd Technical User Jan 24, 2002 31 GB Try this... Sub MyMacro() With ActiveSheet.Cells .Replace What:=" ", Replacement:="" End With End Sub This will remove the leading zero's - but for a binary, that's obviously not a problem...!! Cheers. wadjssd Upvote 0 Downvote
Try this... Sub MyMacro() With ActiveSheet.Cells .Replace What:=" ", Replacement:="" End With End Sub This will remove the leading zero's - but for a binary, that's obviously not a problem...!! Cheers. wadjssd
Mar 6, 2002 #3 dsb Technical User Mar 3, 2002 66 US use the vb function string = replace(string," ","" Upvote 0 Downvote