Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
michaelberrier
 
Posts: n/a
Default Displaying cell values in a Userform

I know how to configure a UserForm to display values from a textbox in
a specific cell:

ActiveSheet.Range("A1") = TextBox.Text

What I would like to do is the opposite. To design a macro that
displays specific cell values in the textboxes of a UserForm that pops
up.

Any hope of that?

Thanks to all.

  #2   Report Post  
Posted to microsoft.public.excel.misc
Daniel CHEN
 
Posts: n/a
Default Displaying cell values in a Userform


The same way as

TextBox.Text = ActiveSheet.Range("A1")
OR
TextBox.Text = Sheets("shtname").range("A1")

-
Best regards,
---
Yongjun CHEN
==================================
- - - - www.XLDataSoft.com - - - -
Free Excel/VBA Tool & Training Material
==================================
"michaelberrier" wrote in message
ups.com...
I know how to configure a UserForm to display values from a textbox in
a specific cell:

ActiveSheet.Range("A1") = TextBox.Text

What I would like to do is the opposite. To design a macro that
displays specific cell values in the textboxes of a UserForm that pops
up.

Any hope of that?

Thanks to all.



  #3   Report Post  
Posted to microsoft.public.excel.misc
michaelberrier
 
Posts: n/a
Default Displaying cell values in a Userform


I'm guessing I put that in the UserForm code module? I've tried that
there and in a seperate module and cannot make it work.

Thanks for helping.

  #4   Report Post  
Posted to microsoft.public.excel.misc
Harald Staff
 
Posts: n/a
Default Displaying cell values in a Userform

You know WHAT you want to happen, and it is mostly solved

(there may be different results from these variations:
TextBox.Text = Sheets("shtname").range("A1")
TextBox.Text = Sheets("shtname").range("A1").Text
TextBox.Text = Sheets("shtname").range("A1").Value
)

but you haven't told HOW and WHEN you want this to happen. These
considerations decide where to put the code.

HTH. Best wishes Harald

"michaelberrier" skrev i melding
oups.com...

I'm guessing I put that in the UserForm code module? I've tried that
there and in a seperate module and cannot make it work.

Thanks for helping.



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
Compiling macro based on cell values simonsmith Excel Discussion (Misc queries) 1 May 16th 06 08:31 PM
Format cell color based on multiple cell values Zenaida Excel Discussion (Misc queries) 1 May 10th 06 07:31 PM
Format cell color based on multiple cell values Zenaida Excel Discussion (Misc queries) 3 May 9th 06 11:56 PM
Replacing Linked Cell Values w/ Current Values TomCat Excel Worksheet Functions 6 April 10th 06 12:20 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


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