Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 239
Default Multiple data entry - Dynamic textbox

Hi All,
I got a new project in which I am stuck up at one place. Rest all work
is complete and works fine. The problem is as below.

In my application (VBA Project), the user has to enter the date
against the predefined items. I have placed the listbox to select the
items and another textbox to enter the data. when user press the
button "Add records" the data entered by him in the textboxes will be
added to the sheet called Production and will be processed further to
create PO and work orders.

I have successfully run the macro for fixed no of records. But I
failed to do it dynamically. I mean user may enter only one record or
he may enter more then 30 recored at a time. I have to place a set of
one listbox and one text box for each record. How to do this?

While a sample code is more welcome, even plain directions will also
be appreciated.
I am using win2000 with office2000 if that helps.
Thanks,
Madiya
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Multiple data entry - Dynamic textbox

Is this a userform or controls on a worksheet.

If a userform, you can place all your 30 rows of controls in rows on the
userform, then control the height of the userform so that only the number of
controls necessary are visible. You can certainly add controls at runtime,
but this seems more complex than necessary.

--
Regards,
Tom Ogilvy

"Madiya" wrote in message
om...
Hi All,
I got a new project in which I am stuck up at one place. Rest all work
is complete and works fine. The problem is as below.

In my application (VBA Project), the user has to enter the date
against the predefined items. I have placed the listbox to select the
items and another textbox to enter the data. when user press the
button "Add records" the data entered by him in the textboxes will be
added to the sheet called Production and will be processed further to
create PO and work orders.

I have successfully run the macro for fixed no of records. But I
failed to do it dynamically. I mean user may enter only one record or
he may enter more then 30 recored at a time. I have to place a set of
one listbox and one text box for each record. How to do this?

While a sample code is more welcome, even plain directions will also
be appreciated.
I am using win2000 with office2000 if that helps.
Thanks,
Madiya



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 239
Default Multiple data entry - Dynamic textbox

This is a userfrom which works along with macros in the bas module and
code behind the sheets and code behind the userform and command
buttons placed on the userform. Your suggession for 30 rows of
controls in rows is difficult as i have other controls which is
connected to the listbox of item by vlookup and shows the relative
data for the selected item. Morover the records are not 30, it varies.
This is where the problem is. Also the height of form is limited to
the screen height.
I hope there are other ways also.
Anyway, thanks for reply.

Regards,
Madiya

"Tom Ogilvy" wrote in message ...
Is this a userform or controls on a worksheet.

If a userform, you can place all your 30 rows of controls in rows on the
userform, then control the height of the userform so that only the number of
controls necessary are visible. You can certainly add controls at runtime,
but this seems more complex than necessary.

--
Regards,
Tom Ogilvy

"Madiya" wrote in message
om...
Hi All,
I got a new project in which I am stuck up at one place. Rest all work
is complete and works fine. The problem is as below.

In my application (VBA Project), the user has to enter the date
against the predefined items. I have placed the listbox to select the
items and another textbox to enter the data. when user press the
button "Add records" the data entered by him in the textboxes will be
added to the sheet called Production and will be processed further to
create PO and work orders.

I have successfully run the macro for fixed no of records. But I
failed to do it dynamically. I mean user may enter only one record or
he may enter more then 30 recored at a time. I have to place a set of
one listbox and one text box for each record. How to do this?

While a sample code is more welcome, even plain directions will also
be appreciated.
I am using win2000 with office2000 if that helps.
Thanks,
Madiya

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Multiple data entry - Dynamic textbox

Either you want to put 30 rows of controls on the userform or you don't. I
didn't suggest 30 rows of controls.

I mean user may enter only one record or
he may enter more then 30 recored at a time. I have to place a set of
one listbox and one text box for each record.


--
Regards,
Tom Ogilvy

"Madiya" wrote in message
om...
This is a userfrom which works along with macros in the bas module and
code behind the sheets and code behind the userform and command
buttons placed on the userform. Your suggession for 30 rows of
controls in rows is difficult as i have other controls which is
connected to the listbox of item by vlookup and shows the relative
data for the selected item. Morover the records are not 30, it varies.
This is where the problem is. Also the height of form is limited to
the screen height.
I hope there are other ways also.
Anyway, thanks for reply.

Regards,
Madiya

"Tom Ogilvy" wrote in message

...
Is this a userform or controls on a worksheet.

If a userform, you can place all your 30 rows of controls in rows on the
userform, then control the height of the userform so that only the

number of
controls necessary are visible. You can certainly add controls at

runtime,
but this seems more complex than necessary.

--
Regards,
Tom Ogilvy

"Madiya" wrote in message
om...
Hi All,
I got a new project in which I am stuck up at one place. Rest all work
is complete and works fine. The problem is as below.

In my application (VBA Project), the user has to enter the date
against the predefined items. I have placed the listbox to select the
items and another textbox to enter the data. when user press the
button "Add records" the data entered by him in the textboxes will be
added to the sheet called Production and will be processed further to
create PO and work orders.

I have successfully run the macro for fixed no of records. But I
failed to do it dynamically. I mean user may enter only one record or
he may enter more then 30 recored at a time. I have to place a set of
one listbox and one text box for each record. How to do this?

While a sample code is more welcome, even plain directions will also
be appreciated.
I am using win2000 with office2000 if that helps.
Thanks,
Madiya



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Multiple data entry - Dynamic textbox

Tom,
May be i didn't explained my need properly. If it is one time effort, I will
do it but I dont know really how many records will be entered each time. So
is it possible to, say,
-add listbox and textbox controls for 5 records and a 2 command buttons
-so when there is more then 5 records each time user clicks on command
button1
- command button1 will hide the filled up boxes and puts blank boxes
- at the end, when user clicks command button2 to end his data entry, all
the boxes will be looped
and data will be added to the sheet.

Thanks for your reply.
Regards,
Madiya



"Tom Ogilvy" wrote in message
...
Either you want to put 30 rows of controls on the userform or you don't.

I
didn't suggest 30 rows of controls.

I mean user may enter only one record or
he may enter more then 30 recored at a time. I have to place a set

of
one listbox and one text box for each record.


--
Regards,
Tom Ogilvy

"Madiya" wrote in message
om...
This is a userfrom which works along with macros in the bas module and
code behind the sheets and code behind the userform and command
buttons placed on the userform. Your suggession for 30 rows of
controls in rows is difficult as i have other controls which is
connected to the listbox of item by vlookup and shows the relative
data for the selected item. Morover the records are not 30, it varies.
This is where the problem is. Also the height of form is limited to
the screen height.
I hope there are other ways also.
Anyway, thanks for reply.

Regards,
Madiya

"Tom Ogilvy" wrote in message

...
Is this a userform or controls on a worksheet.

If a userform, you can place all your 30 rows of controls in rows on

the
userform, then control the height of the userform so that only the

number of
controls necessary are visible. You can certainly add controls at

runtime,
but this seems more complex than necessary.

--
Regards,
Tom Ogilvy

"Madiya" wrote in message
om...
Hi All,
I got a new project in which I am stuck up at one place. Rest all

work
is complete and works fine. The problem is as below.

In my application (VBA Project), the user has to enter the date
against the predefined items. I have placed the listbox to select

the
items and another textbox to enter the data. when user press the
button "Add records" the data entered by him in the textboxes will

be
added to the sheet called Production and will be processed further

to
create PO and work orders.

I have successfully run the macro for fixed no of records. But I
failed to do it dynamically. I mean user may enter only one record

or
he may enter more then 30 recored at a time. I have to place a set

of
one listbox and one text box for each record. How to do this?

While a sample code is more welcome, even plain directions will also
be appreciated.
I am using win2000 with office2000 if that helps.
Thanks,
Madiya







  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Multiple data entry - Dynamic textbox

the normal approach is to provide one set of input controls. The user enters
the data and clicks a button. The single record is entered and the controls
are cleared ready to accept the next record. When the user is done, then
they click a cancel or done button to drop the userform.

If you want to do something besides that, then perhaps John Walkenbach's
page on creating a userform dynamically will give you some hints.

http://j-walk.com/ss/excel/tips/tip76.htm

--
Regards,
Tom Ogilvy

"Madiya" wrote in message
...
Tom,
May be i didn't explained my need properly. If it is one time effort, I

will
do it but I dont know really how many records will be entered each time.

So
is it possible to, say,
-add listbox and textbox controls for 5 records and a 2 command buttons
-so when there is more then 5 records each time user clicks on command
button1
- command button1 will hide the filled up boxes and puts blank boxes
- at the end, when user clicks command button2 to end his data entry, all
the boxes will be looped
and data will be added to the sheet.

Thanks for your reply.
Regards,
Madiya



"Tom Ogilvy" wrote in message
...
Either you want to put 30 rows of controls on the userform or you don't.

I
didn't suggest 30 rows of controls.

I mean user may enter only one record or
he may enter more then 30 recored at a time. I have to place a set

of
one listbox and one text box for each record.


--
Regards,
Tom Ogilvy

"Madiya" wrote in message
om...
This is a userfrom which works along with macros in the bas module and
code behind the sheets and code behind the userform and command
buttons placed on the userform. Your suggession for 30 rows of
controls in rows is difficult as i have other controls which is
connected to the listbox of item by vlookup and shows the relative
data for the selected item. Morover the records are not 30, it varies.
This is where the problem is. Also the height of form is limited to
the screen height.
I hope there are other ways also.
Anyway, thanks for reply.

Regards,
Madiya

"Tom Ogilvy" wrote in message

...
Is this a userform or controls on a worksheet.

If a userform, you can place all your 30 rows of controls in rows on

the
userform, then control the height of the userform so that only the

number of
controls necessary are visible. You can certainly add controls at

runtime,
but this seems more complex than necessary.

--
Regards,
Tom Ogilvy

"Madiya" wrote in message
om...
Hi All,
I got a new project in which I am stuck up at one place. Rest all

work
is complete and works fine. The problem is as below.

In my application (VBA Project), the user has to enter the date
against the predefined items. I have placed the listbox to select

the
items and another textbox to enter the data. when user press the
button "Add records" the data entered by him in the textboxes will

be
added to the sheet called Production and will be processed further

to
create PO and work orders.

I have successfully run the macro for fixed no of records. But I
failed to do it dynamically. I mean user may enter only one record

or
he may enter more then 30 recored at a time. I have to place a set

of
one listbox and one text box for each record. How to do this?

While a sample code is more welcome, even plain directions will

also
be appreciated.
I am using win2000 with office2000 if that helps.
Thanks,
Madiya







  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Multiple data entry - Dynamic textbox

This is a userfrom which works along with macros in the bas module and
code behind the sheets and code behind the userform and command
buttons placed on the userform. Your suggession for 30 rows of
controls in rows is difficult as i have other controls which is
connected to the listbox of item by vlookup and shows the relative
data for the selected item. Morover the records are not 30, it varies.
This is where the problem is. Also the height of form is limited to
the screen height.
I hope there are other ways also.
Anyway, thanks for reply.

Regards,
Madiya

"Tom Ogilvy" wrote in message
...
Is this a userform or controls on a worksheet.

If a userform, you can place all your 30 rows of controls in rows on the
userform, then control the height of the userform so that only the number

of
controls necessary are visible. You can certainly add controls at

runtime,
but this seems more complex than necessary.

--
Regards,
Tom Ogilvy

"Madiya" wrote in message
om...
Hi All,
I got a new project in which I am stuck up at one place. Rest all work
is complete and works fine. The problem is as below.

In my application (VBA Project), the user has to enter the date
against the predefined items. I have placed the listbox to select the
items and another textbox to enter the data. when user press the
button "Add records" the data entered by him in the textboxes will be
added to the sheet called Production and will be processed further to
create PO and work orders.

I have successfully run the macro for fixed no of records. But I
failed to do it dynamically. I mean user may enter only one record or
he may enter more then 30 recored at a time. I have to place a set of
one listbox and one text box for each record. How to do this?

While a sample code is more welcome, even plain directions will also
be appreciated.
I am using win2000 with office2000 if that helps.
Thanks,
Madiya





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
Multiple data entry with multiple results Jafferi[_2_] Excel Worksheet Functions 2 March 27th 09 05:06 AM
Can drop downs be narrowed based on dynamic data entry? Roady Excel Discussion (Misc queries) 0 May 19th 08 02:25 AM
How can I set up a dynamic data entry form? Eric Excel Worksheet Functions 1 January 21st 08 07:07 PM
dynamic textbox?? No Name Excel Programming 1 April 7th 04 10:27 AM
Validating Entry into Textbox Brad[_11_] Excel Programming 1 December 4th 03 02:58 PM


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