Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
DB DB is offline
external usenet poster
 
Posts: 46
Default Format text in a textbox

Is it possible to formate lines of text in a textbox with bullets? I was
hoping I could place a button that when clicked would format the paragraphs
with bullets. This textbox would be on a userform.

Anyone have any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Format text in a textbox


DB Wrote:
Is it possible to formate lines of text in a textbox with bullets? I
was
hoping I could place a button that when clicked would format the
paragraphs
with bullets. This textbox would be on a userform.

Anyone have any ideas?


Since textbox supports only printable ASCII set, I think in true sense
you cannot format with bullets. But as a work around you could search
for a new line and add let us say "*" as bullet at the begining of new
line. You are then introducing additional characters ( eg. * ) but it
will appear to be formatted with bullets. A simple code line
Set TB = UserForm1.TextBox1
TB.Value= Replace(TB.Value, CHR$(10), "* ")
should do the trick.

A V Veerkar


--
avveerkar
------------------------------------------------------------------------
avveerkar's Profile: http://www.excelforum.com/member.php...o&userid=30338
View this thread: http://www.excelforum.com/showthread...hreadid=510452

  #3   Report Post  
Posted to microsoft.public.excel.programming
DB DB is offline
external usenet poster
 
Posts: 46
Default Format text in a textbox

Thank you for the suggestion, I'll make it happen. BTW, can you remind me
what the $ symbol in your CHR$ means?

"avveerkar" wrote:


DB Wrote:
Is it possible to formate lines of text in a textbox with bullets? I
was
hoping I could place a button that when clicked would format the
paragraphs
with bullets. This textbox would be on a userform.

Anyone have any ideas?


Since textbox supports only printable ASCII set, I think in true sense
you cannot format with bullets. But as a work around you could search
for a new line and add let us say "*" as bullet at the begining of new
line. You are then introducing additional characters ( eg. * ) but it
will appear to be formatted with bullets. A simple code line
Set TB = UserForm1.TextBox1
TB.Value= Replace(TB.Value, CHR$(10), "* ")
should do the trick.

A V Veerkar


--
avveerkar
------------------------------------------------------------------------
avveerkar's Profile: http://www.excelforum.com/member.php...o&userid=30338
View this thread: http://www.excelforum.com/showthread...hreadid=510452


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Format text in a textbox

it means return a string. As I understand it, there really is no
difference between CHR and CHR$ in VBA 6.

? typename(chr(57))
String
? typename(chr$(57))
String



--
Regards,
Tom Ogilvy

"DB" wrote in message
...
Thank you for the suggestion, I'll make it happen. BTW, can you remind me
what the $ symbol in your CHR$ means?

"avveerkar" wrote:


DB Wrote:
Is it possible to formate lines of text in a textbox with bullets? I
was
hoping I could place a button that when clicked would format the
paragraphs
with bullets. This textbox would be on a userform.

Anyone have any ideas?


Since textbox supports only printable ASCII set, I think in true sense
you cannot format with bullets. But as a work around you could search
for a new line and add let us say "*" as bullet at the begining of new
line. You are then introducing additional characters ( eg. * ) but it
will appear to be formatted with bullets. A simple code line
Set TB = UserForm1.TextBox1
TB.Value= Replace(TB.Value, CHR$(10), "* ")
should do the trick.

A V Veerkar


--
avveerkar
------------------------------------------------------------------------
avveerkar's Profile:

http://www.excelforum.com/member.php...o&userid=30338
View this thread:

http://www.excelforum.com/showthread...hreadid=510452




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
TextBox format? Pas Excel Discussion (Misc queries) 5 April 25th 10 11:13 PM
how to format text in textbox? ghost Excel Discussion (Misc queries) 1 May 18th 08 10:41 AM
Highlight all Text in a Textbox when the textbox is selected RPIJG[_73_] Excel Programming 3 October 28th 05 08:28 PM
Textbox Format Paul Excel Programming 2 June 21st 05 10:27 AM
check variable(text) with cell (text), textbox Mark[_17_] Excel Programming 1 August 27th 03 01:15 PM


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

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

About Us

"It's about Microsoft Excel"