Cell auto filled with dots [Solved/Closed]

Posts
34
Registration date
Monday March 10, 2014
Last seen
September 21, 2015
- Jun 16, 2014 at 04:49 PM - Latest reply:
Posts
34
Registration date
Monday March 10, 2014
Last seen
September 21, 2015
- Jun 19, 2014 at 07:27 PM
Hello,
I sow it once but not sure where and can't work out how to do it.
Basically, if I write things in excel, I need it to be auto filled with dots so that no space is left in the cell. I hope it is clear, but please let me know otherwise. I know it can be done because I've seen it before but didn't take a note at the time regretfully. Much appreciated
See more 

4 replies

Best answer
Posts
2447
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
November 15, 2018
- Jun 17, 2014 at 11:52 AM
5
Thank you
Hi Jutulu,

You mean something like this?:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim MyWidth As Currency

MyWidth = Target.ColumnWidth

Target.EntireColumn.AutoFit

If Target.ColumnWidth >= MyWidth Then
    Target.ColumnWidth = MyWidth
    Exit Sub
End If

Do
    Target = Target & "."
    Target.EntireColumn.AutoFit
Loop Until Target.ColumnWidth = MyWidth

End Sub


Best regards,
Trowa

Thank you, TrowaD 5

Something to say? Add comment

CCM has helped 1687 users this month

Posts
34
Registration date
Monday March 10, 2014
Last seen
September 21, 2015
- Jun 18, 2014 at 06:10 PM
0
Thank you
Hi Trowa,

I didn't want to use macros. However, there is a much easier way to do it. I sow it once and thought it was very cool, but never wrote it down and can't remember it. Thanks anyway. Hope can find the answer to it.
Posts
2447
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
November 15, 2018
- Jun 19, 2014 at 10:35 AM
OK Jutulu, I got it.

Go to cell properties > number tab > go to the manual input and type in "@*."

Enjoy.

Best regards,
Trowa
Posts
34
Registration date
Monday March 10, 2014
Last seen
September 21, 2015
- Jun 19, 2014 at 07:27 PM
0
Thank you
Great! It was just that. Thank a lot. Only, you mean to go to custom option at the bottom, not number