Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default RefEdit ActiveX control

Hi,

I have a RefEdit control in my form, but I would like to force it to require
the selection of columns similar to using Page Setup where you select the
Columns to repeat on the left. Where the mouse cursor appears as a down
arrow, and no matter what you click, you select an entire column(s).

Is there a property of the RefEdit that I can change to force this? I
looked, but don't see anything obvious.

Thanks

Simon
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default RefEdit ActiveX control

Simon,

RefEdit Controls are difficult to live and work with.
Give the following a try (note the RefEdit has been renamed).
'----------------------------------------------------------
Private Sub RefEditTest_Change()
On Error Resume Next
Dim objRng As Excel.Range
Set objRng = Range(RefEditTest.Text).EntireColumn
If Err.Number < 0 Then Set objRng = Selection.EntireColumn
On Error GoTo NoRange
objRng.Select
Me.RefEditTest.Text = objRng.Address
Set objRng = Nothing
Exit Sub
NoRange:
Beep
Resume Next
End Sub

Private Sub UserForm_Initialize()
' Do not set the focus to the RefEdit control.
Me.RefEditTest.Text = Selection.Columns.Address
End Sub
'------------------------------------------------------

Regards,
Jim Cone
San Francisco, USA



"Simon Shaw" wrote in message
...
Hi,

I have a RefEdit control in my form, but I would like to force it to require
the selection of columns similar to using Page Setup where you select the
Columns to repeat on the left. Where the mouse cursor appears as a down
arrow, and no matter what you click, you select an entire column(s).
Is there a property of the RefEdit that I can change to force this? I
looked, but don't see anything obvious.
Thanks
Simon

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
RefEdit control Tim[_39_] Excel Programming 2 August 10th 04 07:02 PM
Selecting dates from ListBoxes by using RefEdit Control wpllc2004 Excel Programming 3 April 21st 04 07:36 AM
Help: Looking for the replacement of RefEdit control Jerry Louis Excel Programming 2 April 21st 04 02:15 AM
Shift-Control Arrow and RefEdit Control? Ariel[_2_] Excel Programming 12 January 6th 04 11:10 PM
RefEdit control bug Dag Johansen[_6_] Excel Programming 1 October 20th 03 12:32 PM


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