PC Review


Reply
Thread Tools Rate Thread

Copy and insert name on tab

 
 
Maggie
Guest
Posts: n/a
 
      1st Mar 2007
I already have the macro to copy my worksheet which is:
Sheets("HOEPA Worksheet").Select
Sheets("HOEPA Worksheet").Copy Before:=Sheets(1).

I want to be able to name the tab using a input box but I cant seem to
get it to work. Any suggestions on how to go about this so that when
I hit the button to copy and insert an input box would come and ask to
enter the name of the tab.

Maggie

 
Reply With Quote
 
 
 
 
=?Utf-8?B?R2FyeScncyBTdHVkZW50?=
Guest
Posts: n/a
 
      1st Mar 2007
one extra line:

Sub maggie()
Sheets("HOEPA Worksheet").Select
Sheets("HOEPA Worksheet").Copy Before:=Sheets(1)
Sheets(1).Name = Application.InputBox("enter tabname", 2)
End Sub

--
Gary's Student
gsnu200708


"Maggie" wrote:

> I already have the macro to copy my worksheet which is:
> Sheets("HOEPA Worksheet").Select
> Sheets("HOEPA Worksheet").Copy Before:=Sheets(1).
>
> I want to be able to name the tab using a input box but I cant seem to
> get it to work. Any suggestions on how to go about this so that when
> I hit the button to copy and insert an input box would come and ask to
> enter the name of the tab.
>
> Maggie
>
>

 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      1st Mar 2007
And maybe take one out
Sub maggie()
Sheets("HOEPA Worksheet").Copy Before:=Sheets(1)
Sheets(1).Name = Application.InputBox("enter tabname", 2)
End Sub

--
Don Guillett
SalesAid Software
(E-Mail Removed)
"Gary''s Student" <(E-Mail Removed)> wrote in message
news:8A4040B2-A8F2-48A1-8A92-(E-Mail Removed)...
> one extra line:
>
> Sub maggie()
> Sheets("HOEPA Worksheet").Select
> Sheets("HOEPA Worksheet").Copy Before:=Sheets(1)
> Sheets(1).Name = Application.InputBox("enter tabname", 2)
> End Sub
>
> --
> Gary's Student
> gsnu200708
>
>
> "Maggie" wrote:
>
>> I already have the macro to copy my worksheet which is:
>> Sheets("HOEPA Worksheet").Select
>> Sheets("HOEPA Worksheet").Copy Before:=Sheets(1).
>>
>> I want to be able to name the tab using a input box but I cant seem to
>> get it to work. Any suggestions on how to go about this so that when
>> I hit the button to copy and insert an input box would come and ask to
>> enter the name of the tab.
>>
>> Maggie
>>
>>



 
Reply With Quote
 
=?Utf-8?B?Sm9lbA==?=
Guest
Posts: n/a
 
      1st Mar 2007
I used a learn macro and then made appropriate changes. this works.

Sub Macro2()
'
' Macro2 Macro
' Macro recorded 3/1/2007

'
newname = InputBox("enter sheet name")
Sheets("ABC").Select
Sheets("ABC").Name = newname
End Sub


"Maggie" wrote:

> I already have the macro to copy my worksheet which is:
> Sheets("HOEPA Worksheet").Select
> Sheets("HOEPA Worksheet").Copy Before:=Sheets(1).
>
> I want to be able to name the tab using a input box but I cant seem to
> get it to work. Any suggestions on how to go about this so that when
> I hit the button to copy and insert an input box would come and ask to
> enter the name of the tab.
>
> Maggie
>
>

 
Reply With Quote
 
Maggie
Guest
Posts: n/a
 
      1st Mar 2007
On Mar 1, 11:25 am, Gary''s Student
<GarysStud...@discussions.microsoft.com> wrote:
> one extra line:
>
> Sub maggie()
> Sheets("HOEPA Worksheet").Select
> Sheets("HOEPA Worksheet").Copy Before:=Sheets(1)
> Sheets(1).Name = Application.InputBox("enter tabname", 2)
> End Sub
>
> --
> Gary's Student
> gsnu200708
>
>
>
> "Maggie" wrote:
> > I already have the macro to copy my worksheet which is:
> > Sheets("HOEPA Worksheet").Select
> > Sheets("HOEPA Worksheet").Copy Before:=Sheets(1).

>
> > I want to be able to name the tab using a input box but I cant seem to
> > get it to work. Any suggestions on how to go about this so that when
> > I hit the button to copy and insert an input box would come and ask to
> > enter the name of the tab.

>
> > Maggie- Hide quoted text -

>
> - Show quoted text -


Thank you so much it worked! I can't believe it was so simple!

 
Reply With Quote
 
=?Utf-8?B?R2FyeScncyBTdHVkZW50?=
Guest
Posts: n/a
 
      1st Mar 2007
Guillett's post is even better.
--
Gary''s Student
gsnu200708


"Maggie" wrote:

> On Mar 1, 11:25 am, Gary''s Student
> <GarysStud...@discussions.microsoft.com> wrote:
> > one extra line:
> >
> > Sub maggie()
> > Sheets("HOEPA Worksheet").Select
> > Sheets("HOEPA Worksheet").Copy Before:=Sheets(1)
> > Sheets(1).Name = Application.InputBox("enter tabname", 2)
> > End Sub
> >
> > --
> > Gary's Student
> > gsnu200708
> >
> >
> >
> > "Maggie" wrote:
> > > I already have the macro to copy my worksheet which is:
> > > Sheets("HOEPA Worksheet").Select
> > > Sheets("HOEPA Worksheet").Copy Before:=Sheets(1).

> >
> > > I want to be able to name the tab using a input box but I cant seem to
> > > get it to work. Any suggestions on how to go about this so that when
> > > I hit the button to copy and insert an input box would come and ask to
> > > enter the name of the tab.

> >
> > > Maggie- Hide quoted text -

> >
> > - Show quoted text -

>
> Thank you so much it worked! I can't believe it was so simple!
>
>

 
Reply With Quote
 
Maggie
Guest
Posts: n/a
 
      1st Mar 2007
On Mar 1, 11:47 am, "Don Guillett" <dguille...@austin.rr.com> wrote:
> And maybe take one out
> Sub maggie()
> Sheets("HOEPA Worksheet").Copy Before:=Sheets(1)
> Sheets(1).Name = Application.InputBox("enter tabname", 2)
> End Sub
>
> --
> Don Guillett
> SalesAid Software
> dguille...@austin.rr.com"Gary''s Student" <GarysStud...@discussions.microsoft.com> wrote in message
>
> news:8A4040B2-A8F2-48A1-8A92-(E-Mail Removed)...
>
>
>
> > one extra line:

>
> > Sub maggie()
> > Sheets("HOEPA Worksheet").Select
> > Sheets("HOEPA Worksheet").Copy Before:=Sheets(1)
> > Sheets(1).Name = Application.InputBox("enter tabname", 2)
> > End Sub

>
> > --
> > Gary's Student
> > gsnu200708

>
> > "Maggie" wrote:

>
> >> I already have the macro to copy my worksheet which is:
> >> Sheets("HOEPA Worksheet").Select
> >> Sheets("HOEPA Worksheet").Copy Before:=Sheets(1).

>
> >> I want to be able to name the tab using a input box but I cant seem to
> >> get it to work. Any suggestions on how to go about this so that when
> >> I hit the button to copy and insert an input box would come and ask to
> >> enter the name of the tab.

>
> >> Maggie- Hide quoted text -

>
> - Show quoted text -


Once I enter the tab name can I get it to be entered into a specific
cell on that worksheet too. For example the tab names are going to be
loan numbers and on my worksheet there is a field (cell g13) that
needs to be entered for loan number too. I do not know if that is
possible or not.

 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      1st Mar 2007
try adding another line. There are other ways to do this.

>> Sub maggie()
>> Sheets("HOEPA Worksheet").Copy Before:=Sheets(1)
>> Sheets(1).Name = Application.InputBox("enter tabname", 2)

Sheets(1).range("a1").value=sheets(1).name

End Sub
>>



--
Don Guillett
SalesAid Software
(E-Mail Removed)
"Maggie" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Mar 1, 11:47 am, "Don Guillett" <dguille...@austin.rr.com> wrote:
>> And maybe take one out
>> Sub maggie()
>> Sheets("HOEPA Worksheet").Copy Before:=Sheets(1)
>> Sheets(1).Name = Application.InputBox("enter tabname", 2)
>> End Sub
>>
>> --
>> Don Guillett
>> SalesAid Software
>> dguille...@austin.rr.com"Gary''s Student"
>> <GarysStud...@discussions.microsoft.com> wrote in message
>>
>> news:8A4040B2-A8F2-48A1-8A92-(E-Mail Removed)...
>>
>>
>>
>> > one extra line:

>>
>> > Sub maggie()
>> > Sheets("HOEPA Worksheet").Select
>> > Sheets("HOEPA Worksheet").Copy Before:=Sheets(1)
>> > Sheets(1).Name = Application.InputBox("enter tabname", 2)
>> > End Sub

>>
>> > --
>> > Gary's Student
>> > gsnu200708

>>
>> > "Maggie" wrote:

>>
>> >> I already have the macro to copy my worksheet which is:
>> >> Sheets("HOEPA Worksheet").Select
>> >> Sheets("HOEPA Worksheet").Copy Before:=Sheets(1).

>>
>> >> I want to be able to name the tab using a input box but I cant seem to
>> >> get it to work. Any suggestions on how to go about this so that when
>> >> I hit the button to copy and insert an input box would come and ask to
>> >> enter the name of the tab.

>>
>> >> Maggie- Hide quoted text -

>>
>> - Show quoted text -

>
> Once I enter the tab name can I get it to be entered into a specific
> cell on that worksheet too. For example the tab names are going to be
> loan numbers and on my worksheet there is a field (cell g13) that
> needs to be entered for loan number too. I do not know if that is
> possible or not.
>



 
Reply With Quote
 
Maggie
Guest
Posts: n/a
 
      2nd Mar 2007
On Mar 1, 5:31 pm, "Don Guillett" <dguille...@austin.rr.com> wrote:
> try adding another line. There are other ways to do this.
>
> >> Sub maggie()
> >> Sheets("HOEPA Worksheet").Copy Before:=Sheets(1)
> >> Sheets(1).Name = Application.InputBox("enter tabname", 2)

>
> Sheets(1).range("a1").value=sheets(1).name
>
> End Sub
>
>
>
> --
> Don Guillett
> SalesAid Software
> dguille...@austin.rr.com"Maggie" <schmidt.marga...@gmail.com> wrote in message
>
> news:(E-Mail Removed)...
>
>
>
> > On Mar 1, 11:47 am, "Don Guillett" <dguille...@austin.rr.com> wrote:
> >> And maybe take one out
> >> Sub maggie()
> >> Sheets("HOEPA Worksheet").Copy Before:=Sheets(1)
> >> Sheets(1).Name = Application.InputBox("enter tabname", 2)
> >> End Sub

>
> >> --
> >> Don Guillett
> >> SalesAid Software
> >> dguille...@austin.rr.com"Gary''s Student"
> >> <GarysStud...@discussions.microsoft.com> wrote in message

>
> >>news:8A4040B2-A8F2-48A1-8A92-(E-Mail Removed)...

>
> >> > one extra line:

>
> >> > Sub maggie()
> >> > Sheets("HOEPA Worksheet").Select
> >> > Sheets("HOEPA Worksheet").Copy Before:=Sheets(1)
> >> > Sheets(1).Name = Application.InputBox("enter tabname", 2)
> >> > End Sub

>
> >> > --
> >> > Gary's Student
> >> > gsnu200708

>
> >> > "Maggie" wrote:

>
> >> >> I already have the macro to copy my worksheet which is:
> >> >> Sheets("HOEPA Worksheet").Select
> >> >> Sheets("HOEPA Worksheet").Copy Before:=Sheets(1).

>
> >> >> I want to be able to name the tab using a input box but I cant seem to
> >> >> get it to work. Any suggestions on how to go about this so that when
> >> >> I hit the button to copy and insert an input box would come and ask to
> >> >> enter the name of the tab.

>
> >> >> Maggie- Hide quoted text -

>
> >> - Show quoted text -

>
> > Once I enter the tab name can I get it to be entered into a specific
> > cell on that worksheet too. For example the tab names are going to be
> > loan numbers and on my worksheet there is a field (cell g13) that
> > needs to be entered for loan number too. I do not know if that is
> > possible or not.- Hide quoted text -

>
> - Show quoted text -


That worked! Thanks! Is there a limit on the number of tabs that
excel can handle. I have 50-60 loans that need to be input into 50-60
worksheets using the same macros. I have to use excel because that is
what my boss wants. Is that possible?

 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      2nd Mar 2007
You shouldn't have a problem. But, do you really need each loan to have it
OWN worksheet? Show your layout and I'll bet you can do it on one and then
use filters.

Pls TOP post
--
Don Guillett
SalesAid Software
(E-Mail Removed)
"Maggie" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Mar 1, 5:31 pm, "Don Guillett" <dguille...@austin.rr.com> wrote:
>> try adding another line. There are other ways to do this.
>>
>> >> Sub maggie()
>> >> Sheets("HOEPA Worksheet").Copy Before:=Sheets(1)
>> >> Sheets(1).Name = Application.InputBox("enter tabname", 2)

>>
>> Sheets(1).range("a1").value=sheets(1).name
>>
>> End Sub
>>
>>
>>
>> --
>> Don Guillett
>> SalesAid Software
>> dguille...@austin.rr.com"Maggie" <schmidt.marga...@gmail.com> wrote in
>> message
>>
>> news:(E-Mail Removed)...
>>
>>
>>
>> > On Mar 1, 11:47 am, "Don Guillett" <dguille...@austin.rr.com> wrote:
>> >> And maybe take one out
>> >> Sub maggie()
>> >> Sheets("HOEPA Worksheet").Copy Before:=Sheets(1)
>> >> Sheets(1).Name = Application.InputBox("enter tabname", 2)
>> >> End Sub

>>
>> >> --
>> >> Don Guillett
>> >> SalesAid Software
>> >> dguille...@austin.rr.com"Gary''s Student"
>> >> <GarysStud...@discussions.microsoft.com> wrote in message

>>
>> >>news:8A4040B2-A8F2-48A1-8A92-(E-Mail Removed)...

>>
>> >> > one extra line:

>>
>> >> > Sub maggie()
>> >> > Sheets("HOEPA Worksheet").Select
>> >> > Sheets("HOEPA Worksheet").Copy Before:=Sheets(1)
>> >> > Sheets(1).Name = Application.InputBox("enter tabname", 2)
>> >> > End Sub

>>
>> >> > --
>> >> > Gary's Student
>> >> > gsnu200708

>>
>> >> > "Maggie" wrote:

>>
>> >> >> I already have the macro to copy my worksheet which is:
>> >> >> Sheets("HOEPA Worksheet").Select
>> >> >> Sheets("HOEPA Worksheet").Copy Before:=Sheets(1).

>>
>> >> >> I want to be able to name the tab using a input box but I cant seem
>> >> >> to
>> >> >> get it to work. Any suggestions on how to go about this so that
>> >> >> when
>> >> >> I hit the button to copy and insert an input box would come and ask
>> >> >> to
>> >> >> enter the name of the tab.

>>
>> >> >> Maggie- Hide quoted text -

>>
>> >> - Show quoted text -

>>
>> > Once I enter the tab name can I get it to be entered into a specific
>> > cell on that worksheet too. For example the tab names are going to be
>> > loan numbers and on my worksheet there is a field (cell g13) that
>> > needs to be entered for loan number too. I do not know if that is
>> > possible or not.- Hide quoted text -

>>
>> - Show quoted text -

>
> That worked! Thanks! Is there a limit on the number of tabs that
> excel can handle. I have 50-60 loans that need to be input into 50-60
> worksheets using the same macros. I have to use excel because that is
> what my boss wants. Is that possible?
>



 
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
Insert Row and Copy Down From Above -goss Microsoft Excel Programming 3 3rd Nov 2008 02:36 PM
Insert and Copy mvhs5977@yahoo.com Microsoft Excel Programming 0 18th Aug 2008 05:25 PM
Copy and paste versus copy and insert copied cells =?Utf-8?B?QWxhbmE=?= Microsoft Excel New Users 1 28th Sep 2007 08:58 PM
Macro to insert copy and insert formulas only to next blank row bob Microsoft Excel Programming 0 30th Jun 2006 12:02 PM
Copy and Insert Using VBA Mikey2005 Microsoft Excel Programming 3 10th Feb 2006 04:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:08 AM.