Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Create a new sheet from an existing sheet

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.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default Create a new sheet from an existing sheet

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" wrote in message
...
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.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Create a new sheet from an existing sheet

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" wrote in message
...
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
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
How to create Login & Log out Spread sheet in Excel with automated Attendance sheet marc5354 Excel Worksheet Functions 2 September 21st 10 04:22 PM
Creating a new sheet from specific data in existing sheet Rosscoe Excel Discussion (Misc queries) 2 January 13th 10 03:07 PM
Copy rows onto existing sheet / start a new sheet if full mg_sv_r Excel Programming 0 November 29th 07 12:57 PM
create an automatic complete list from existing data in the sheet Etienne Excel Discussion (Misc queries) 2 February 8th 06 01:55 PM
Copy the entire sheet to overlay existing sheet? LurfysMa New Users to Excel 2 August 29th 05 07:05 PM


All times are GMT +1. The time now is 11:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"