Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default Selecting Refedit value

Hi.

I am using refedits and am selecting a range of
cells...i.e. more than one cells. If I select a single
cell then I can get the refedit value from the Range
(Reedit1) or Range(RefEdit1).Cells(1).Value or
RefEdit1.Value. I got this help from this user group
itself. Now my criteria is changed and now i want to
select values say for e.g. from $BO$304:$BQ$304. How can I
extract the values into a variable???? Can it be done.

thanks a lot
Monika
  #2   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Selecting Refedit value

I jsut resolved this problem. I can get diff cell values
through Range(RefEdit1).Cells(1).Value, Range
(RefEdit1).Cells(2).Value....

but if anyone can still suggest me as to hwo to know how
many cells i have selected..it would be gr8 help
thanks
-----Original Message-----
Hi.

I am using refedits and am selecting a range of
cells...i.e. more than one cells. If I select a single
cell then I can get the refedit value from the Range
(Reedit1) or Range(RefEdit1).Cells(1).Value or
RefEdit1.Value. I got this help from this user group
itself. Now my criteria is changed and now i want to
select values say for e.g. from $BO$304:$BQ$304. How can

I
extract the values into a variable???? Can it be done.

thanks a lot
Monika
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Selecting Refedit value

Range(RefEdit1).Cells.Count

--

Vasant

wrote in message
...
I jsut resolved this problem. I can get diff cell values
through Range(RefEdit1).Cells(1).Value, Range
(RefEdit1).Cells(2).Value....

but if anyone can still suggest me as to hwo to know how
many cells i have selected..it would be gr8 help
thanks
-----Original Message-----
Hi.

I am using refedits and am selecting a range of
cells...i.e. more than one cells. If I select a single
cell then I can get the refedit value from the Range
(Reedit1) or Range(RefEdit1).Cells(1).Value or
RefEdit1.Value. I got this help from this user group
itself. Now my criteria is changed and now i want to
select values say for e.g. from $BO$304:$BQ$304. How can

I
extract the values into a variable???? Can it be done.

thanks a lot
Monika
.



  #4   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Selecting Refedit value

cool thanks
-----Original Message-----
Range(RefEdit1).Cells.Count

--

Vasant

wrote in message
...
I jsut resolved this problem. I can get diff cell values
through Range(RefEdit1).Cells(1).Value, Range
(RefEdit1).Cells(2).Value....

but if anyone can still suggest me as to hwo to know how
many cells i have selected..it would be gr8 help
thanks
-----Original Message-----
Hi.

I am using refedits and am selecting a range of
cells...i.e. more than one cells. If I select a single
cell then I can get the refedit value from the Range
(Reedit1) or Range(RefEdit1).Cells(1).Value or
RefEdit1.Value. I got this help from this user group
itself. Now my criteria is changed and now i want to
select values say for e.g. from $BO$304:$BQ$304. How

can
I
extract the values into a variable???? Can it be done.

thanks a lot
Monika
.



.

  #5   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.misc
external usenet poster
 
Posts: 575
Default Selecting Refedit value

Monika,

You can set a range or refer to a range according to the refedit value

e.g.
Dim rngInput as Range
set rngInput = Range(Refedit1.Value)

then rngInput.count, rngInput.address, rngInput.cells(1,1).value should all
work.

Robin Hammond
www.enhanceddatasystems.com

"monika" wrote in message
...
Hi.

I am using refedits and am selecting a range of
cells...i.e. more than one cells. If I select a single
cell then I can get the refedit value from the Range
(Reedit1) or Range(RefEdit1).Cells(1).Value or
RefEdit1.Value. I got this help from this user group
itself. Now my criteria is changed and now i want to
select values say for e.g. from $BO$304:$BQ$304. How can I
extract the values into a variable???? Can it be done.

thanks a lot
Monika





  #6   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.misc
external usenet poster
 
Posts: 1,049
Default Selecting Refedit value

Once you have the range you can get the data from the range as per any
other range...
Dim mydata as Variant
mydata = rngInput

Now you can use the UBound and LBound functions
--
Patrick Molloy
Microsoft Excel MVP

"Robin Hammond" wrote in message
...
Monika,

You can set a range or refer to a range according to the refedit value

e.g.
Dim rngInput as Range
set rngInput = Range(Refedit1.Value)

then rngInput.count, rngInput.address, rngInput.cells(1,1).value should

all
work.

Robin Hammond
www.enhanceddatasystems.com

"monika" wrote in message
...
Hi.

I am using refedits and am selecting a range of
cells...i.e. more than one cells. If I select a single
cell then I can get the refedit value from the Range
(Reedit1) or Range(RefEdit1).Cells(1).Value or
RefEdit1.Value. I got this help from this user group
itself. Now my criteria is changed and now i want to
select values say for e.g. from $BO$304:$BQ$304. How can I
extract the values into a variable???? Can it be done.

thanks a lot
Monika





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 question tt Excel Discussion (Misc queries) 2 February 8th 06 03:42 AM
RefEdit daMike[_2_] Excel Programming 3 December 13th 03 07:31 PM
Refedit question. Cesar Zapata[_2_] Excel Programming 1 November 27th 03 03:27 AM
RefEdit control bug Dag Johansen[_6_] Excel Programming 1 October 20th 03 12:32 PM


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