Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 249
Default User Form - use of single form for multiple sheets

I have 10 sheets which contain identical tables for entering a chemical
process.

I use user forms for data entry, and would like to set up a single form for
use on each sheet.

I want to use a single form that can be activated on each sheet and will
enter data on the active sheet.

I dont want to have to recreate an individual user form for each of the
identical sheets but rather use a single form that will enter data for the
specific sheet the userform is activated.

Can anyone help with relevant the code to do this?

Thanks,

Roger
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default User Form - use of single form for multiple sheets

Not sure why that would be a problem.
If you have one form you can load it from any sheet with:
Load Form1
Form1.Show
etc.

You could do it from a button in the sheet or you could make a toolbar menu.

RBS


"Roger on Excel" wrote in message
...
I have 10 sheets which contain identical tables for entering a chemical
process.

I use user forms for data entry, and would like to set up a single form
for
use on each sheet.

I want to use a single form that can be activated on each sheet and will
enter data on the active sheet.

I dont want to have to recreate an individual user form for each of the
identical sheets but rather use a single form that will enter data for the
specific sheet the userform is activated.

Can anyone help with relevant the code to do this?

Thanks,

Roger


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default User Form - use of single form for multiple sheets

RB is correct that you can use the same form for different sheets. But be
careful/

While you can call the form for any sheet, your code behind the form that
sends the data entered by the user to the worksheet needs to be written so
that the data goes to the correct sheet. If no particular sheet is
specified, i.e.

Range("A4") = myControl.Value

It will post to the ActiveSheet. So make sure the active sheet is the one
you want to post to.

"Roger on Excel" wrote:

I have 10 sheets which contain identical tables for entering a chemical
process.

I use user forms for data entry, and would like to set up a single form for
use on each sheet.

I want to use a single form that can be activated on each sheet and will
enter data on the active sheet.

I dont want to have to recreate an individual user form for each of the
identical sheets but rather use a single form that will enter data for the
specific sheet the userform is activated.

Can anyone help with relevant the code to do this?

Thanks,

Roger

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 249
Default User Form - use of single form for multiple sheets

Thanks for the advice guys,

All the best,

Roger



"JLGWhiz" wrote:

RB is correct that you can use the same form for different sheets. But be
careful/

While you can call the form for any sheet, your code behind the form that
sends the data entered by the user to the worksheet needs to be written so
that the data goes to the correct sheet. If no particular sheet is
specified, i.e.

Range("A4") = myControl.Value

It will post to the ActiveSheet. So make sure the active sheet is the one
you want to post to.

"Roger on Excel" wrote:

I have 10 sheets which contain identical tables for entering a chemical
process.

I use user forms for data entry, and would like to set up a single form for
use on each sheet.

I want to use a single form that can be activated on each sheet and will
enter data on the active sheet.

I dont want to have to recreate an individual user form for each of the
identical sheets but rather use a single form that will enter data for the
specific sheet the userform is activated.

Can anyone help with relevant the code to do this?

Thanks,

Roger

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
Date field in user form & Loading a user form on opening workbook Balan Excel Programming 1 May 24th 08 03:40 PM
Multiple sheets, one user form, and a unique ID [email protected] Excel Programming 1 March 6th 06 05:30 PM
can a User Form reference several sheets? Adrockvt Excel Programming 1 June 3rd 05 05:03 PM
copy sheets selected on user form Tom Ogilvy Excel Programming 0 August 19th 04 06:15 PM
copy sheets selected on user form Ron de Bruin Excel Programming 0 August 19th 04 06:03 PM


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