userform listbox columnheads
Hi Helmut,
creates a columnhead "Column A".
Any idea how to modify or retrieve it?
Perhaps, something like:
'=============
Private Sub CommandButton1_Click()
Dim rng As Range
Set rng = Range(Me.ListBox1.RowSource)
MsgBox rng(0, 1).Value
rng(0, 1).Value = "New"
MsgBox rng(0, 1).Value
Me.ListBox1.RowSource = Me.ListBox1.RowSource
End Sub
'<<=============
---
Regards,
Norman
"Helmut Weber" wrote in message
...
Hi Norman,
you are right, indeed.
Maybe forms react differently in Excel and Word,
should have tested it. :-(.
With Me.ListBox1
.RowSource = "A1:A30"
.ColumnHeads = True
End With
creates a columnhead "Column A".
Any idea how to modify or retrieve it?
Thx.
--
Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
|