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: 27
Default thanks...But I had another ques

i think i wanted exaclty what u have reffered
below...thanks soooooooo much.

let me try it!
-----Original Message-----
Hi Monika -

This macro asks how many RefEdits you want, then puts

that many onto the
form, each below the previous one. When the form is

hidden, it gets the
addresses of all of the RefEdits and puts them into a

message box.

The hard part was finding the ProgID for the RefEdit. I

was looking for
something like "Forms.RefEdit.1", but it's not a MSForms

control. A trip
to RegEdit show me that I needed "RefEdit.Ctrl". I wasn't

even sure this
would work, because those RefEdits can be feisty little

things.

Sub DrawRefEdits()
Dim i As Integer, i2 As Integer
Dim x As Single, y As Single
Dim ctlRef As Control
Dim msg As String

i2 = InputBox("How Many RefEdit Boxes?")
x = 12
y = 12

Load UserForm1
For i = 1 To i2
Set ctlRef = UserForm1.Controls.Add

("RefEdit.Ctrl")
With ctlRef
.Name = "Ref" & i
.Left = x
.Top = y
y = y + .Height
End With
Next
UserForm1.Show

For i = 1 To i2
msg = msg & UserForm1.Controls("Ref" & i).Value

& vbCrLf
Next
MsgBox msg
End Sub

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
http://PeltierTech.com/Excel/Charts/
_______


Monika wrote:

thanks all ...it works wonderfully.

I had another question related to the same. I want to
generate refedits on form based on a certain array

values..
like if my array has 5 i want 5 refedits to be added in

my
form..how can i do this..

thanks tremendously.



-----Original Message-----

Hi monika

MsgBox Range(RefEdit1).Cells(1).Value

--
XL2002
Regards

William



"monika" wrote in


message

. ..
| I want to get the value trapped through regedit.
| IF i select a cell $B$2 and I try to get the value
| throught:
| RefEdit1.Value
| i only get $B$2
|
| how can i get the actaul value and not the address??
|
| thanks


.


.

 
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
IF formula ques Diane Excel Discussion (Misc queries) 2 December 23rd 08 05:48 PM
Ques. about LINK in my workbook CMIConnie Excel Discussion (Misc queries) 4 February 10th 06 03:54 PM
MACRO QUES FOR MVP Frantic Excel-er Excel Discussion (Misc queries) 2 May 27th 05 12:37 AM
ques maya Excel Worksheet Functions 1 March 5th 05 02:49 PM
formatting ques... mike Excel Programming 1 October 28th 03 03:20 PM


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