Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Use a UserForm to preview data

Hi all,

Is it possible to use a UserForm to preview data?

I have the folowing in a sheet

Account Branch RecNo Amount

abcd a 1 10
def b 2 15
abcd b 3 25
defg a 4 20

If I create a UserForm with a combobox for RecNo and
three TextBoxes for corresponding data, How can i code to
get the data on TextBox ?

TIA
Soniya


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Use a UserForm to preview data

Soniya..


create a defined name for the range e.g. "formSource"


set following properties of the combobox

..rowsource "formSource" (text)
..columncount 4
..columnwidths 0 pt;0 pt;;0 pt
..matchentry 0 matchentryfirst
,matchrequired true
..style 2 fmstylelist

then add following event in the code module of the form
With ComboBox1
TextBox1 = .List(.ListIndex, 0)
TextBox2 = .List(.ListIndex, 1)
TextBox3 = .List(.ListIndex, 3)
End With

suc6

keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Soniya" wrote:

Hi all,

Is it possible to use a UserForm to preview data?

I have the folowing in a sheet

Account Branch RecNo Amount

abcd a 1 10
def b 2 15
abcd b 3 25
defg a 4 20

If I create a UserForm with a combobox for RecNo and
three TextBoxes for corresponding data, How can i code to
get the data on TextBox ?

TIA
Soniya




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
UserForm to insert new data dschanak Excel Discussion (Misc queries) 1 August 1st 07 09:40 PM
print preview v page break preview SamB Excel Discussion (Misc queries) 0 November 16th 06 05:09 PM
userform that add data in all w/sheets tkraju via OfficeKB.com Excel Discussion (Misc queries) 0 March 24th 06 04:29 AM
Userform data Cordobes Excel Discussion (Misc queries) 3 December 3rd 05 05:48 PM
UserForm Data to Spreadsheet Andy Tallent Excel Discussion (Misc queries) 2 June 22nd 05 04:51 PM


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