ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   RefEdit control (https://www.excelbanter.com/excel-programming/306524-refedit-control.html)

Tim[_39_]

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



steve

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


.


Tim[_39_]

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


.





All times are GMT +1. The time now is 05:15 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com