Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 156
Default Newbie questions


Can a text box have columns, like a list box?

Must a list box always have an item (or row) selected?

Thanks - Kirk
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Newbie questions

Kirk,
1 - Basically, no. But you can fake it yourself with a fixed-width font and
spaces/tabs, but it's likely to get messy.

2 - No. Set its .ListIndex=-1

NickHK

"kirkm" wrote in message
...

Can a text box have columns, like a list box?

Must a list box always have an item (or row) selected?

Thanks - Kirk



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 156
Default Newbie questions

On Fri, 2 Mar 2007 16:35:14 +0800, "NickHK"
wrote:


1 - Basically, no. But you can fake it yourself with a fixed-width font and
spaces/tabs, but it's likely to get messy.

2 - No. Set its .ListIndex=-1


Thanks - that sounds highly promising. But I can't see a ListIndex
option in the listbox properties.

I tried

Private Sub UserForm_Initialize()
List1.ListIndex = -1
End Sub

...but that didn't seem to do anything.

I'd like to use a listbox as a text display only, without anything
highlit and any user input ignored. Except Close and scroll.

Is that possible?

Thanks - Kirk
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Newbie questions

Kirk,
Sorry, I was thinking of a ComboxBox.

With a ListBox, you have to .Clear it.

However, if you only need 1 line of text, a text or label box may be better.
TextBox1.Text="Column one" & Space(4) & "Column two" & Space(4) & "Column
three"

Depends if you need the columns to line up with anything external.

NickHK

"kirkm" wrote in message
...
On Fri, 2 Mar 2007 16:35:14 +0800, "NickHK"
wrote:


1 - Basically, no. But you can fake it yourself with a fixed-width font

and
spaces/tabs, but it's likely to get messy.

2 - No. Set its .ListIndex=-1


Thanks - that sounds highly promising. But I can't see a ListIndex
option in the listbox properties.

I tried

Private Sub UserForm_Initialize()
List1.ListIndex = -1
End Sub

..but that didn't seem to do anything.

I'd like to use a listbox as a text display only, without anything
highlit and any user input ignored. Except Close and scroll.

Is that possible?

Thanks - Kirk



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
Newbie Questions KS Excel Discussion (Misc queries) 3 June 18th 09 06:13 PM
A few questions - newbie in VBA Cheetahke Excel Programming 4 September 11th 06 01:38 PM
newbie questions Eric[_26_] Excel Programming 4 December 29th 04 08:08 PM
Newbie VBA questions Brian Vallelunga Excel Programming 4 October 4th 04 06:21 PM
Newbie - two questions Bill Burke Excel Programming 4 April 7th 04 09:38 AM


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