#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Cell lookup

Hi,

Please can someone tell me how to get a Text 'Edit Box' to
get a value from a sheet in excel?

the Dialog box is being used in Excel, and i need it to
display this information when the Dialog is Run.

Thank you,

Robert Couchman
  #2   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Cell lookup

ControlSource property of the text box specifies which
cell contains data for the text dialog box.
-----Original Message-----
Hi,

Please can someone tell me how to get a Text 'Edit Box'

to
get a value from a sheet in excel?

the Dialog box is being used in Excel, and i need it to
display this information when the Dialog is Run.

Thank you,

Robert Couchman
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Cell lookup

Assuming you are using a DialogSheet and EditBox from the Forms toolbar, you
need to go to your dialog in the dialogsheet and select it. Right click on
the outline that surrounds the DialogSheet and indicates it is selected.
You should get a popup menu that includes
Assign Macro
as a choice.

Choose a macro like this:

Sub DialogFrame1_Show()
DialogSheets("Dialog1").EditBoxes("Edit Box 4").Text = _
Worksheets("A").Range("B2").Value
End Sub

This macro is assigned to the dialog frame and fires when the dialog is
displayed. You can initialize your editboxes here. The above macro should
already be in a general module before you perform the above steps to assign
it to the dialog frame.

--
Regards,
Tom Ogilvy


"Robert Couchman" wrote in
message ...
Hi,

Please can someone tell me how to get a Text 'Edit Box' to
get a value from a sheet in excel?

the Dialog box is being used in Excel, and i need it to
display this information when the Dialog is Run.

Thank you,

Robert Couchman



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
formula to lookup data in cell NEXT to another cell TraderXL Excel Worksheet Functions 3 June 22nd 09 01:44 PM
Get Cell Address From Lookup (Alternative to Lookup) ryguy7272 Excel Worksheet Functions 12 September 28th 07 10:36 PM
Need to lookup value in cell, dependent on value in another cell StaceyJ Excel Worksheet Functions 1 April 20th 07 09:24 PM
formatting a cell the same as the source cell from a lookup table hot dogs Excel Discussion (Misc queries) 2 August 24th 06 11:07 AM
lookup more than one cell andrewm Excel Worksheet Functions 20 June 14th 05 05:33 AM


All times are GMT +1. The time now is 11:51 AM.

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"