LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 414
Default RefEdit

hi all.
I posted in another post yesterday regarding my first user form.
The one response I received in return said that in order to allow the user
to select a range, I needed to use the RefEdit control.
We recently purchased John Walkenbach's Power Programming book for Excel
2007, and in reading the discussion on refedit, I'm unclear on the syntax I
need to use to make my textboxes work.

On pages 452/453 of his book is the discussion for RefEdit.
I get a type mismatch error when I use Set, and no error when I use Let. But
it doesn't allow me to select a range, either way.


Either way it still does not allow me to select a range.
I then did some searching on the MS KB, and found an old discussion on this
topic-- from 2000, 2002. http://support.microsoft.com/kb/213776
It has the code for a command_Click button-
Dim SelRange as Range
Dim Addr as String

'Get the address, or reference, from the RefEdit control.
Addr = RefEdit1.Value

'Set the SelRange Range object to the range specified in the
'RefEdit control.
Set SelRange = Range(Addr)

This too does not allow for a range selection.

At this point, I'm just frustrated.
If I require a RefEdit to select a range, how am I suppose to state it?


Thank you.
SteveB.

 
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
To refedit, or not to refedit, that is the question. davegb Excel Programming 2 October 25th 06 08:19 PM
RefEdit ??? T.c.Goosen1977[_21_] Excel Programming 0 July 3rd 06 03:11 PM
RefEdit [email protected] Excel Programming 3 March 13th 06 12:53 AM
RefEdit in VB6 Ben Crinion Excel Programming 0 October 8th 04 11:00 AM
RefEdit daMike[_2_] Excel Programming 3 December 13th 03 07:31 PM


All times are GMT +1. The time now is 09:06 AM.

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"