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

Hi,

I'm trying to use the RefEdit control on a userform to select a range on a
worksheet to paste the contents of a text box to. on pressing the refedit
button it navigates to a different sheet in the same workbook (which is what
i want), producing a value of

'Lab Request'!$C$8

which is fine, thats where i want to data to go, but i can't work out how to
tell vb to put the contents of textbox2 to that cell reference... i can
normally work this sort of thing out, but not this time - something tells me
its really easy.

tia,
tim


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 141
Default RefEdit control

verry simple version this is the modual behind a user
form with a textbox, refedit box and a comand butten

have fun


Private Sub CommandButton1_Click()
Dim R As Range
Set R = Range(RefEdit1.Value)
R.Value = TextBox1.Value
End Sub



-----Original Message-----
Hi,

I'm trying to use the RefEdit control on a userform to

select a range on a
worksheet to paste the contents of a text box to. on

pressing the refedit
button it navigates to a different sheet in the same

workbook (which is what
i want), producing a value of

'Lab Request'!$C$8

which is fine, thats where i want to data to go, but i

can't work out how to
tell vb to put the contents of textbox2 to that cell

reference... i can
normally work this sort of thing out, but not this time -

something tells me
its really easy.

tia,
tim


.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 71
Default RefEdit control

works like a dream - cheers!

"steve" wrote in message
...
verry simple version this is the modual behind a user
form with a textbox, refedit box and a comand butten

have fun


Private Sub CommandButton1_Click()
Dim R As Range
Set R = Range(RefEdit1.Value)
R.Value = TextBox1.Value
End Sub



-----Original Message-----
Hi,

I'm trying to use the RefEdit control on a userform to

select a range on a
worksheet to paste the contents of a text box to. on

pressing the refedit
button it navigates to a different sheet in the same

workbook (which is what
i want), producing a value of

'Lab Request'!$C$8

which is fine, thats where i want to data to go, but i

can't work out how to
tell vb to put the contents of textbox2 to that cell

reference... i can
normally work this sort of thing out, but not this time -

something tells me
its really easy.

tia,
tim


.



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
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 daMike[_2_] Excel Programming 3 December 13th 03 07:31 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 04:57 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"