Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Multi-line text on a CommandButton

Hi,

I am using Excel 2007. I have inserted an ActiveX Command Button on a
worksheet. I can enter descriptive text in the "Caption" field and this text
is displayed on this Command Button. I can only seem to enter one line of
text this way. Can anyone tell me if there is a way I can enter a second
line of text to be displayed on the Command Button?

Thanks in advance,
Paul Kraemer

--
Paul Kraemer
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default Multi-line text on a CommandButton

What happens when you hold down the Shift key and hit Enter?

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Paul Kraemer" wrote:

Hi,

I am using Excel 2007. I have inserted an ActiveX Command Button on a
worksheet. I can enter descriptive text in the "Caption" field and this text
is displayed on this Command Button. I can only seem to enter one line of
text this way. Can anyone tell me if there is a way I can enter a second
line of text to be displayed on the Command Button?

Thanks in advance,
Paul Kraemer

--
Paul Kraemer

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Multi-line text on a CommandButton

If you rightclick on the commandbutton (while in design mode), you can choose:

Commandbutton Object|Edit
And type the caption you want. Use ctrl-enter to force a newline in that
caption.



Paul Kraemer wrote:

Hi,

I am using Excel 2007. I have inserted an ActiveX Command Button on a
worksheet. I can enter descriptive text in the "Caption" field and this text
is displayed on this Command Button. I can only seem to enter one line of
text this way. Can anyone tell me if there is a way I can enter a second
line of text to be displayed on the Command Button?

Thanks in advance,
Paul Kraemer

--
Paul Kraemer


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Multi-line text on a CommandButton

And if you wanted to do it in code:

Worksheets("Sheet1").CommandButton1.Caption = "hi" & vbLf & "there"

Paul Kraemer wrote:

Hi,

I am using Excel 2007. I have inserted an ActiveX Command Button on a
worksheet. I can enter descriptive text in the "Caption" field and this text
is displayed on this Command Button. I can only seem to enter one line of
text this way. Can anyone tell me if there is a way I can enter a second
line of text to be displayed on the Command Button?

Thanks in advance,
Paul Kraemer

--
Paul Kraemer


--

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
Multi Line text box jmonesmith Excel Discussion (Misc queries) 3 September 6th 07 09:06 PM
Multi-Line Text In Same Cell RAH[_2_] Excel Discussion (Misc queries) 4 May 12th 07 01:28 AM
Formatting multi-line text Tim H. Excel Programming 3 June 16th 06 08:48 PM
multi-line text file import to excel Waxaholic Excel Programming 2 May 25th 06 08:39 PM
Multi-line cell text content saved in XML Dag Johansen[_5_] Excel Programming 0 October 6th 03 10:24 AM


All times are GMT +1. The time now is 01:13 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"