PC Review


Reply
Thread Tools Rate Thread

Add new worksheet via userform

 
 
Bruise
Guest
Posts: n/a
 
      4th Oct 2006
Hello all.

I am trying to setup a script where I can use a form (Userform1) to fill in
an employee name and ID number, click the ADD button and create a new
worksheet with the employees name only?

I've searched this group for similiar topics, but not fit exactly as I need.

Any suggestions?

TIA

Mark


 
Reply With Quote
 
 
 
 
Nigel
Guest
Posts: n/a
 
      4th Oct 2006
In its simplest form the add sheet will create a new sheet and activate it,
then name it using the string which could come from the control on the
userform.
e.g textbox1.value

Sheets.Add
ActiveSheet.Name = textbox1.value

--
Cheers
Nigel



"Bruise" <(E-Mail Removed)> wrote in message
news:%23$(E-Mail Removed)...
> Hello all.
>
> I am trying to setup a script where I can use a form (Userform1) to fill
> in
> an employee name and ID number, click the ADD button and create a new
> worksheet with the employees name only?
>
> I've searched this group for similiar topics, but not fit exactly as I
> need.
>
> Any suggestions?
>
> TIA
>
> Mark
>
>



 
Reply With Quote
 
Susan
Guest
Posts: n/a
 
      4th Oct 2006
in the beginning of your userform command code, you just need to insert

Worksheets.Add
ActiveSheet.Name = "xxxx"


susan

 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      4th Oct 2006
Worksheets.Add.Name = TextBox1.Value

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Bruise" <(E-Mail Removed)> wrote in message
news:%23$(E-Mail Removed)...
> Hello all.
>
> I am trying to setup a script where I can use a form (Userform1) to fill

in
> an employee name and ID number, click the ADD button and create a new
> worksheet with the employees name only?
>
> I've searched this group for similiar topics, but not fit exactly as I

need.
>
> Any suggestions?
>
> TIA
>
> Mark
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
UserForm and Worksheet ??? TotallyConfused Microsoft Excel Programming 1 24th Sep 2009 07:31 PM
opening user form when worksheet activated OR embedding a userform ina worksheet jason Microsoft Excel Discussion 1 31st Aug 2009 05:53 PM
Worksheet in Userform =?Utf-8?B?U3RldmU=?= Microsoft Excel Programming 1 28th Aug 2006 06:23 PM
userform only not worksheet cedtech23 Microsoft Excel Programming 5 20th Jul 2006 11:13 PM
UserForm for each Worksheet prepotency Microsoft Excel Programming 0 12th Aug 2005 05:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:52 AM.