ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Another newbie question please (https://www.excelbanter.com/excel-programming/355871-another-newbie-question-please.html)

Ashnook

Another newbie question please
 
In a form I have a text box containing "=materials!b3".

I now want another text box to contain the content of the referenced
cell, so if cell 'materials!b3' contains 32 I want this other text box
to contain 32.

Simple for you experience guys but I cannot make it work!

Thanks in anticipation

Brian

Bernie Deitrick

Another newbie question please
 
Brian,

When you say form, if you mean a userform, then something along the lines of:

UserForm1.TextBox2.Text = Evaluate(UserForm1.TextBox1.Text)

If you mean a spreadsheet that you've set up as an input form, then it depends, and you'll need to
describe your situation better.

HTH,
Bernie
MS Excel MVP


"Ashnook" <brian@atashnookcdtfreeservedotcodotuk wrote in message
. com...
In a form I have a text box containing "=materials!b3".

I now want another text box to contain the content of the referenced cell, so if cell
'materials!b3' contains 32 I want this other text box to contain 32.

Simple for you experience guys but I cannot make it work!

Thanks in anticipation

Brian




Ashnook

Another newbie question please
 
Bernie Deitrick wrote:
Brian,

When you say form, if you mean a userform, then something along the lines of:

UserForm1.TextBox2.Text = Evaluate(UserForm1.TextBox1.Text)

If you mean a spreadsheet that you've set up as an input form, then it depends, and you'll need to
describe your situation better.

HTH,
Bernie
MS Excel MVP

Thanks Bernie, the userform is exactly what I wanted to do, it works great.

Brian


All times are GMT +1. The time now is 10:09 AM.

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