Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using User forms to enter data into lists

I built a financial model in Excel, which uses several product inputs and
then calculates various profit scenarios.
I now wish to make it easier for users to use the model by:
(i) Building lists for product data to be stored (in the background)
(ii) Adding user forms, so that users do not manipulate lists directly.

I am familiar with lists, and know of the Data-Form command, which generates
a plain form. However, I need to generate a customised form, with the
company logo and some data validation.

I managed to design the front-end of the form, by dragging controls into the
worksheet area, but am unsure as to how to link the form to the list (i.e.:
when the user enters data into the form, the list is updated).

Can anyone help?



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Using User forms to enter data into lists

Hi

My advice is to not link the controls with the cells, but rather make your
code validate and if OK then write to the cells. See if this get you
started:

Private Sub CommandButton1_Click()
Dim R As Long
'VALIDATION HERE, THEN
'R = Row to write to, after last entry:
R = Cells(Rows.Count, 1).End(xlUp).Row + 1
Cells(R, 1).Value = TextBox1.Text
Cells(R, 2).Value = TextBox2.Text
Cells(R, 3).Value = ComboBox1.Text
' and do on,
' then empty the controls
' or unload the form
End Sub

HTH. best wishes Harald

"Saar Ben-Attar" skrev i melding
...
I built a financial model in Excel, which uses several product inputs and
then calculates various profit scenarios.
I now wish to make it easier for users to use the model by:
(i) Building lists for product data to be stored (in the background)
(ii) Adding user forms, so that users do not manipulate lists directly.

I am familiar with lists, and know of the Data-Form command, which

generates
a plain form. However, I need to generate a customised form, with the
company logo and some data validation.

I managed to design the front-end of the form, by dragging controls into

the
worksheet area, but am unsure as to how to link the form to the list

(i.e.:
when the user enters data into the form, the list is updated).

Can anyone help?





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
Custom / Specilized Forms to enter data in Excel Gaylen Excel Worksheet Functions 2 January 23rd 09 02:51 PM
Where are Data Forms for lists (tables) in Excel 2007? Reed P. Wyatt Excel Discussion (Misc queries) 2 July 2nd 07 11:00 AM
Using forms to enter Data into an Expense Sheet. RayJ Excel Discussion (Misc queries) 1 July 5th 05 12:58 AM
Enter data using forms nc Excel Discussion (Misc queries) 1 March 7th 05 02:09 PM
How To: create a form for a user to enter data Ciscolo Bandero Excel Programming 3 April 16th 04 08:54 PM


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