PC Review


Reply
Thread Tools Rate Thread

how to add bullet formatting to excel text

 
 
chiaramonte.michael@gmail.com
Guest
Posts: n/a
 
      7th May 2007
Experts,
I need to reformat my cell content to display with bullets. For
example:
Sentence one [line break]
Sentence two Sentence two Sentence two Sentence two Sentence two
Sentence two Sentence two Sentence two Sentence two Sentence two
Sentence two Sentence two Sentence two [line break]
[line break]
Sentence three

Macro (or simple reformatting?) should run and replace text so that:
- Sentence one [line break]
- Sentence two Sentence two Sentence two Sentence two Sentence two
Sentence two Sentence two Sentence two Sentence two Sentence two
Sentence two Sentence two Sentence two [line break]
[line break]
- Sentence three

I created a macro that replaces line breaks so that a bullet appears
on the next line but that doesn't really cut it because the first line
is missing the bullet, and any extra lines get a bullet that doesn't
belong.

Sub insertbullets()
For Each c In ActiveCell.CurrentRegion.Cells
c.Value = Application.WorksheetFunction.Substitute(c, Chr(10), Chr(10)
& "-")
Next
End Sub

Any ideas? We are copying over a ton of content from PowerPoint and
need to bring the bullet formatting over with it.

 
Reply With Quote
 
 
 
 
NickHK
Guest
Posts: n/a
 
      8th May 2007
Whilst you can probably achieve the same with a RegEx, try this:

Private Sub CommandButton1_Click()
Dim AllLines() As String
Dim Counter As Long

AllLines = Split(Range("A1").Value, Chr(10))

For Counter = 0 To UBound(AllLines)
If Len(AllLines(Counter)) > 0 Then AllLines(Counter) = "-" &
AllLines(Counter)
Next

Range("A1").Value = Join(AllLines, Chr(10))

End Sub

NickHK

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Experts,
> I need to reformat my cell content to display with bullets. For
> example:
> Sentence one [line break]
> Sentence two Sentence two Sentence two Sentence two Sentence two
> Sentence two Sentence two Sentence two Sentence two Sentence two
> Sentence two Sentence two Sentence two [line break]
> [line break]
> Sentence three
>
> Macro (or simple reformatting?) should run and replace text so that:
> - Sentence one [line break]
> - Sentence two Sentence two Sentence two Sentence two Sentence two
> Sentence two Sentence two Sentence two Sentence two Sentence two
> Sentence two Sentence two Sentence two [line break]
> [line break]
> - Sentence three
>
> I created a macro that replaces line breaks so that a bullet appears
> on the next line but that doesn't really cut it because the first line
> is missing the bullet, and any extra lines get a bullet that doesn't
> belong.
>
> Sub insertbullets()
> For Each c In ActiveCell.CurrentRegion.Cells
> c.Value = Application.WorksheetFunction.Substitute(c, Chr(10), Chr(10)
> & "-")
> Next
> End Sub
>
> Any ideas? We are copying over a ton of content from PowerPoint and
> need to bring the bullet formatting over with it.
>



 
Reply With Quote
 
chiaramonte.michael@gmail.com
Guest
Posts: n/a
 
      8th May 2007
that did the trick! thanks man!
-Michael

On May 7, 10:08 pm, "NickHK" <TungChe...@Invalid.com> wrote:
> Whilst you can probably achieve the same with a RegEx, try this:
>
> Private Sub CommandButton1_Click()
> Dim AllLines() As String
> Dim Counter As Long
>
> AllLines = Split(Range("A1").Value, Chr(10))
>
> For Counter = 0 To UBound(AllLines)
> If Len(AllLines(Counter)) > 0 Then AllLines(Counter) = "-" &
> AllLines(Counter)
> Next
>
> Range("A1").Value = Join(AllLines, Chr(10))
>
> End Sub
>
> NickHK
>
> <chiaramonte.mich...@gmail.com> wrote in message
>
> news:(E-Mail Removed)...
>
>
>
> > Experts,
> > I need to reformat my cell content to display with bullets. For
> > example:
> > Sentence one [line break]
> > Sentence two Sentence two Sentence two Sentence two Sentence two
> > Sentence two Sentence two Sentence two Sentence two Sentence two
> > Sentence two Sentence two Sentence two [line break]
> > [line break]
> > Sentence three

>
> > Macro (or simple reformatting?) should run and replace text so that:
> > - Sentence one [line break]
> > - Sentence two Sentence two Sentence two Sentence two Sentence two
> > Sentence two Sentence two Sentence two Sentence two Sentence two
> > Sentence two Sentence two Sentence two [line break]
> > [line break]
> > - Sentence three

>
> > I created a macro that replaces line breaks so that a bullet appears
> > on the next line but that doesn't really cut it because the first line
> > is missing the bullet, and any extra lines get a bullet that doesn't
> > belong.

>
> > Sub insertbullets()
> > For Each c In ActiveCell.CurrentRegion.Cells
> > c.Value = Application.WorksheetFunction.Substitute(c, Chr(10), Chr(10)
> > & "-")
> > Next
> > End Sub

>
> > Any ideas? We are copying over a ton of content from PowerPoint and
> > need to bring the bullet formatting over with it.- Hide quoted text -

>
> - Show quoted text -



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bullet formatting LaurenM Microsoft Word Document Management 2 30th Mar 2009 03:41 PM
Notes Formatting (bullet Points and text color) disappear Dianne Griffin Microsoft Powerpoint 1 14th Mar 2009 01:15 PM
Can you use bullet points for text within a cell in Excel? =?Utf-8?B?Q2Fyb2x5bg==?= Microsoft Excel Misc 1 6th Sep 2007 05:36 PM
Stopping automatic bullet formatting when formatting is turned off =?Utf-8?B?U29sY29ycGlhbldyaXRlcg==?= Microsoft Word Document Management 2 23rd Dec 2004 06:25 AM
bullet button opens bullet options rather than inserting bullet, . =?Utf-8?B?Q3VycmltdW5kaTAx?= Microsoft Word Document Management 1 26th Oct 2004 11:13 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:29 PM.