Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Capture Dynamic Range address into Modeless Form


Hi! I am new here and would like to ask for your assistance regarding m
problem.

I would like to capture the range address of whatever it is that th
user selects on the active worksheet into a textbox in a modeles
form. The user just have to set the focus in one of the textboxes the
select a range from the worksheet and the range address should b
captured inside the textbox.

The function is similar to that of getting the List Range or Criteri
Range address in the Advanced Filter window of Excel.

Hope you could help me out with this.

Thanks,
Pinin

--
pinin
-----------------------------------------------------------------------
pining's Profile: http://www.excelforum.com/member.php...fo&userid=1634
View this thread: http://www.excelforum.com/showthread.php?threadid=27729

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Capture Dynamic Range address into Modeless Form

Hi
use a refedit control for this. This should be in the toolbox then you
create a userform)

"pining" wrote:


Hi! I am new here and would like to ask for your assistance regarding my
problem.

I would like to capture the range address of whatever it is that the
user selects on the active worksheet into a textbox in a modeless
form. The user just have to set the focus in one of the textboxes then
select a range from the worksheet and the range address should be
captured inside the textbox.

The function is similar to that of getting the List Range or Criteria
Range address in the Advanced Filter window of Excel.

Hope you could help me out with this.

Thanks,
Pining


--
pining
------------------------------------------------------------------------
pining's Profile: http://www.excelforum.com/member.php...o&userid=16340
View this thread: http://www.excelforum.com/showthread...hreadid=277294


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Capture Dynamic Range address into Modeless Form

When the range is selected this way, it because the selection, so just use

Selection.Address

or Selection.Address(False, False)

if you don't want the $s. Note that this doesn't get the worksheet name as
well.

Advanced filter actually uses a Reedit control, which does what you want as
well, so you might consider using that. But be aware, RefEdikt is flaky, and
should NEVER be embedded in a frame.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"pining" wrote in message
...

Hi! I am new here and would like to ask for your assistance regarding my
problem.

I would like to capture the range address of whatever it is that the
user selects on the active worksheet into a textbox in a modeless
form. The user just have to set the focus in one of the textboxes then
select a range from the worksheet and the range address should be
captured inside the textbox.

The function is similar to that of getting the List Range or Criteria
Range address in the Advanced Filter window of Excel.

Hope you could help me out with this.

Thanks,
Pining


--
pining
------------------------------------------------------------------------
pining's Profile:

http://www.excelforum.com/member.php...o&userid=16340
View this thread: http://www.excelforum.com/showthread...hreadid=277294



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Capture Dynamic Range address into Modeless Form

note:
use Address(External:=True) to get a proper fully qualified string.



--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam

Bob Phillips wrote in message
:

When the range is selected this way, it because the selection, so just
use

Selection.Address

or Selection.Address(False, False)

if you don't want the $s. Note that this doesn't get the worksheet
name as well.


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
Dynamic Range, Data Validation and Address, Match and Offset Funct rudawg Excel Worksheet Functions 3 January 29th 06 03:19 AM
Removing focus from a Modeless Form? Ian Chappel Excel Programming 2 May 1st 04 07:54 PM
Activating a modeless form R Avery Excel Programming 2 February 4th 04 06:41 PM
Modeless but waiting form Zdenek Moravec Excel Programming 7 January 14th 04 02:00 PM
Modeless form for user interaction Arne[_2_] Excel Programming 6 July 15th 03 02:22 PM


All times are GMT +1. The time now is 12:44 PM.

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"