Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 394
Default Fill Cell with Asterix

Hi everyone,

I seem to remember when I used SuperCalc that there was a way to fill
the WHOLE cell with a character by just entering the one character in.
So, for example, if I wanted to fill the WHOLE cell with an asterix
what would I need to do please.

Thanks in Advance.
All the Best.
Paul

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Fill Cell with Asterix

Just hold the key down and the character will repeat until you let up.

Mike F
"Paul Black" wrote in message
ups.com...
Hi everyone,

I seem to remember when I used SuperCalc that there was a way to fill
the WHOLE cell with a character by just entering the one character in.
So, for example, if I wanted to fill the WHOLE cell with an asterix
what would I need to do please.

Thanks in Advance.
All the Best.
Paul



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default Fill Cell with Asterix

Hi Paul

This would be one way to do it though it isn't the cleanest, it will
work with the font Arial with a size of 10 you will have to change the
values if you intend to use a different font and size. Paste the code
below in the sheet1 module then if you enter * into a cell in sheet1
after you move off the cell it will fill with that character no mater
what width the cell.

Option Explicit
Dim i, x As Integer

Private Sub Worksheet_Change(ByVal Target As Range)

If Target.Value = "*" Then

i = Target.Width - 5.25 ' this value is the min width a cell can
be with 1 * in it

i = i / 3.75 ' this value is the difference in width per each
character added

i = Round(i) ' just incase it's off round the number

For x = 1 To i - 1 ' set the loop to fill the cell

Target.Value = Target.Value & "*"

Next

End If

End Sub

Hope this helps

S

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Fill Cell with Asterix

I am not aware of a format that will repeat the character you typed in but if
you know the character ahed of time that you want then you can use this
custom format

Format|Cells - Number - Custom
**
Repeates the asterix
*-
Repeats a dash
--
HTH...

Jim Thomlinson


"Paul Black" wrote:

Hi everyone,

I seem to remember when I used SuperCalc that there was a way to fill
the WHOLE cell with a character by just entering the one character in.
So, for example, if I wanted to fill the WHOLE cell with an asterix
what would I need to do please.

Thanks in Advance.
All the Best.
Paul


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,316
Default Fill Cell with Asterix

If I remember correctly, it wasn't a key it was a formula. In Lotus 1-2-3 it
was the REPEAT function in Excel it's the REPT function

=REPT(TextToRepeat,NumberOfRepetitions)

=REPT("*",300)
--
Kevin Backmann


"Paul Black" wrote:

Hi everyone,

I seem to remember when I used SuperCalc that there was a way to fill
the WHOLE cell with a character by just entering the one character in.
So, for example, if I wanted to fill the WHOLE cell with an asterix
what would I need to do please.

Thanks in Advance.
All the Best.
Paul




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Fill Cell with Asterix


"Paul Black" wrote in message
ups.com...
Hi everyone,

I seem to remember when I used SuperCalc that there was a way to fill
the WHOLE cell with a character by just entering the one character in.
So, for example, if I wanted to fill the WHOLE cell with an asterix
what would I need to do please.

Thanks in Advance.
All the Best.
Paul


In Lotus123 one would enter a slash followed by the character to repeat -
"\*". I don't think Excel supports this any longer, but you could try
fiddling with the transition settings in the Tools | Options dialog.

Rob

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Fill Cell with Asterix

This is the way I fill cells with the same character. I type the
character into the cell. I then go to Format--Cells--Align--Text
Alignment Horizontal and pull down the menu to fill. I then click
okay. I use Excel 2003.

Steve G

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Fill Cell with Asterix

Or
Type the character * (asterisk)
Format|Cells|Alignment tab|Horizontal text alignment|Fill


Jim Thomlinson wrote:

I am not aware of a format that will repeat the character you typed in but if
you know the character ahed of time that you want then you can use this
custom format

Format|Cells - Number - Custom
**
Repeates the asterix
*-
Repeats a dash
--
HTH...

Jim Thomlinson

"Paul Black" wrote:

Hi everyone,

I seem to remember when I used SuperCalc that there was a way to fill
the WHOLE cell with a character by just entering the one character in.
So, for example, if I wanted to fill the WHOLE cell with an asterix
what would I need to do please.

Thanks in Advance.
All the Best.
Paul



--

Dave Peterson
  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Fill Cell with Asterix

Thanks Dave. You learn something new every day...
--
HTH...

Jim Thomlinson


"Dave Peterson" wrote:

Or
Type the character * (asterisk)
Format|Cells|Alignment tab|Horizontal text alignment|Fill


Jim Thomlinson wrote:

I am not aware of a format that will repeat the character you typed in but if
you know the character ahed of time that you want then you can use this
custom format

Format|Cells - Number - Custom
**
Repeates the asterix
*-
Repeats a dash
--
HTH...

Jim Thomlinson

"Paul Black" wrote:

Hi everyone,

I seem to remember when I used SuperCalc that there was a way to fill
the WHOLE cell with a character by just entering the one character in.
So, for example, if I wanted to fill the WHOLE cell with an asterix
what would I need to do please.

Thanks in Advance.
All the Best.
Paul



--

Dave Peterson

  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Fill Cell with Asterix

That's what I(!) like about the newsgroups!

Jim Thomlinson wrote:

Thanks Dave. You learn something new every day...
--
HTH...

Jim Thomlinson

"Dave Peterson" wrote:

Or
Type the character * (asterisk)
Format|Cells|Alignment tab|Horizontal text alignment|Fill


Jim Thomlinson wrote:

I am not aware of a format that will repeat the character you typed in but if
you know the character ahed of time that you want then you can use this
custom format

Format|Cells - Number - Custom
**
Repeates the asterix
*-
Repeats a dash
--
HTH...

Jim Thomlinson

"Paul Black" wrote:

Hi everyone,

I seem to remember when I used SuperCalc that there was a way to fill
the WHOLE cell with a character by just entering the one character in.
So, for example, if I wanted to fill the WHOLE cell with an asterix
what would I need to do please.

Thanks in Advance.
All the Best.
Paul



--

Dave Peterson


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
remove fill in text from a cell from an unpopulated fill-in cell Deb[_3_] Excel Worksheet Functions 1 September 22nd 09 03:28 PM
Asterix, how to replace it? Kupa72 Excel Worksheet Functions 2 October 22nd 08 03:32 PM
filter asterix excel MikeSchenker Excel Discussion (Misc queries) 1 February 8th 06 08:05 AM
Auto-fill cell based on adjacent cell information.. sans Excel Worksheet Functions 1 October 17th 05 11:38 PM
bar code help, adding asterix to reference R D S Excel Discussion (Misc queries) 1 January 17th 05 06:05 PM


All times are GMT +1. The time now is 08:32 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"