PC Review


Reply
Thread Tools Rate Thread

Create a new sheet from an existing sheet

 
 
rcorona106
Guest
Posts: n/a
 
      11th Jul 2008
I have a workbook with 2 sheets. One is my data sheet that holds the current
month's activity. The other ("monthly") sheet pulls the information from the
data sheet and shows the data in an income statement type format. I am
writing one macro that will:

1. make a copy of the monthly sheet (this newly created sheet will be
referred to as the second monthly sheet)
2. go back to the first monthly sheet and remove the formulas retrieving
the data from the data sheet

After I update the data in the data sheet, a new macro will go to the second
monthly sheet and display the current month's data in one column and in
another column add the current month's data to the ending balance of the
first monthly sheet.

I have step 1 of the first macro working but am stuck when I try to make it
go back to the first monthly sheet. I think I can figure out the rest or at
least I'm hoping so. All help is greatly appreciated. Thanks.

 
Reply With Quote
 
 
 
 
Skinman
Guest
Posts: n/a
 
      12th Jul 2008
To make an exact copy of your monthly sheet, select format, organize sheets,
move or copy sheets, and at the bottom of the dialog box check create copy
and where you want it.
rRename it and it will give you all the same macros and names that your
first sheet had. To run a macro on another sheet you have to refer to the
sheet by name or position.
After your Sub statement() in your module Enter :-
Sheets("Monthly").Select Or whatever the sheet is called
Hope this is of some help.
Skinman


"rcorona106" <(E-Mail Removed)> wrote in message
news:2EA171D9-0495-4744-B19F-(E-Mail Removed)...
>I have a workbook with 2 sheets. One is my data sheet that holds the
>current
> month's activity. The other ("monthly") sheet pulls the information from
> the
> data sheet and shows the data in an income statement type format. I am
> writing one macro that will:
>
> 1. make a copy of the monthly sheet (this newly created sheet will be
> referred to as the second monthly sheet)
> 2. go back to the first monthly sheet and remove the formulas retrieving
> the data from the data sheet
>
> After I update the data in the data sheet, a new macro will go to the
> second
> monthly sheet and display the current month's data in one column and in
> another column add the current month's data to the ending balance of the
> first monthly sheet.
>
> I have step 1 of the first macro working but am stuck when I try to make
> it
> go back to the first monthly sheet. I think I can figure out the rest or
> at
> least I'm hoping so. All help is greatly appreciated. Thanks.
>


 
Reply With Quote
 
rcorona106
Guest
Posts: n/a
 
      14th Jul 2008
Thanks for the info but I still have the same problem. I don't want to have
to go into the macro every month and change the worksheet name. Although I
would only have 2 monthly sheets after the first time I run the macro, I will
be running the macro for every month there after so I will have a big number
of monthly sheets but need the macro to refer to the most recent monthly
sheet. Does that make sense?

"Skinman" wrote:

> To make an exact copy of your monthly sheet, select format, organize sheets,
> move or copy sheets, and at the bottom of the dialog box check create copy
> and where you want it.
> rRename it and it will give you all the same macros and names that your
> first sheet had. To run a macro on another sheet you have to refer to the
> sheet by name or position.
> After your Sub statement() in your module Enter :-
> Sheets("Monthly").Select Or whatever the sheet is called
> Hope this is of some help.
> Skinman
>
>
> "rcorona106" <(E-Mail Removed)> wrote in message
> news:2EA171D9-0495-4744-B19F-(E-Mail Removed)...
> >I have a workbook with 2 sheets. One is my data sheet that holds the
> >current
> > month's activity. The other ("monthly") sheet pulls the information from
> > the
> > data sheet and shows the data in an income statement type format. I am
> > writing one macro that will:
> >
> > 1. make a copy of the monthly sheet (this newly created sheet will be
> > referred to as the second monthly sheet)
> > 2. go back to the first monthly sheet and remove the formulas retrieving
> > the data from the data sheet
> >
> > After I update the data in the data sheet, a new macro will go to the
> > second
> > monthly sheet and display the current month's data in one column and in
> > another column add the current month's data to the ending balance of the
> > first monthly sheet.
> >
> > I have step 1 of the first macro working but am stuck when I try to make
> > it
> > go back to the first monthly sheet. I think I can figure out the rest or
> > at
> > least I'm hoping so. All help is greatly appreciated. Thanks.
> >

>
>

 
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
Creating a new sheet from specific data in existing sheet Rosscoe Microsoft Excel Misc 3 13th Jan 2010 06:08 PM
Copy rows onto existing sheet / start a new sheet if full mg_sv_r Microsoft Excel Programming 0 29th Nov 2007 12:57 PM
Excel 2003: How to create new automatically updating worksheets using data in an existing sheet Lizochka Microsoft Excel Discussion 1 12th Mar 2007 07:03 PM
create an automatic complete list from existing data in the sheet =?Utf-8?B?RXRpZW5uZQ==?= Microsoft Excel Misc 2 8th Feb 2006 01:55 PM
Copy the entire sheet to overlay existing sheet? LurfysMa Microsoft Excel New Users 2 29th Aug 2005 07:05 PM


Features
 

Advertising
 

Newsgroups
 


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