Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 71
Default Help - I'm sure it must be simple

Hi

I don't know a lot about vba except what I see in macros.

What I want to do is the following...

I have an accounts spreadsheet.

In column d in Januarys sheet I have totals (which are formulas)
I need to copy the entire sheet and paste the values from column d in
January into column b for next month as brought forward values fo and so on.
I can do the copy paste values bit using a macro.

What I want to do that I can't do with a macro is be able to say 'copy the
active sheet and move to end', so that if I am on Aprils sheet I click a
button and it creates a new sheet that I can then manually rename as May. It
contains the brought forward figures from the previous month.

I only need the code for the copy active sheet and move to end bit - can
anyone help?

Thanks

Anita
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Help - I'm sure it must be simple

ActiveSheet.Copy after:=Worksheets(Worksheets.Count)
ActiveSheet.Name = "May"

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Anita" wrote in message
...
Hi

I don't know a lot about vba except what I see in macros.

What I want to do is the following...

I have an accounts spreadsheet.

In column d in Januarys sheet I have totals (which are formulas)
I need to copy the entire sheet and paste the values from column d in
January into column b for next month as brought forward values fo and so

on.
I can do the copy paste values bit using a macro.

What I want to do that I can't do with a macro is be able to say 'copy the
active sheet and move to end', so that if I am on Aprils sheet I click a
button and it creates a new sheet that I can then manually rename as May.

It
contains the brought forward figures from the previous month.

I only need the code for the copy active sheet and move to end bit - can
anyone help?

Thanks

Anita



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 71
Default Help - I'm sure it must be simple

Thanks.

How do you 'say' - select the active sheet?

"Bob Phillips" wrote:

ActiveSheet.Copy after:=Worksheets(Worksheets.Count)
ActiveSheet.Name = "May"

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Anita" wrote in message
...
Hi

I don't know a lot about vba except what I see in macros.

What I want to do is the following...

I have an accounts spreadsheet.

In column d in Januarys sheet I have totals (which are formulas)
I need to copy the entire sheet and paste the values from column d in
January into column b for next month as brought forward values fo and so

on.
I can do the copy paste values bit using a macro.

What I want to do that I can't do with a macro is be able to say 'copy the
active sheet and move to end', so that if I am on Aprils sheet I click a
button and it creates a new sheet that I can then manually rename as May.

It
contains the brought forward figures from the previous month.

I only need the code for the copy active sheet and move to end bit - can
anyone help?

Thanks

Anita




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Help - I'm sure it must be simple

You don't, it is already selected, otherwise it isn't the active sheet.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Anita" wrote in message
...
Thanks.

How do you 'say' - select the active sheet?

"Bob Phillips" wrote:

ActiveSheet.Copy after:=Worksheets(Worksheets.Count)
ActiveSheet.Name = "May"

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Anita" wrote in message
...
Hi

I don't know a lot about vba except what I see in macros.

What I want to do is the following...

I have an accounts spreadsheet.

In column d in Januarys sheet I have totals (which are formulas)
I need to copy the entire sheet and paste the values from column d in
January into column b for next month as brought forward values fo and

so
on.
I can do the copy paste values bit using a macro.

What I want to do that I can't do with a macro is be able to say 'copy

the
active sheet and move to end', so that if I am on Aprils sheet I click

a
button and it creates a new sheet that I can then manually rename as

May.
It
contains the brought forward figures from the previous month.

I only need the code for the copy active sheet and move to end bit -

can
anyone help?

Thanks

Anita






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
IF formula-simple question; simple operator Rich D Excel Discussion (Misc queries) 4 December 6th 07 03:36 PM
Simple problem, simple formula, no FUNCTION ! Ron@Buy Excel Worksheet Functions 6 September 28th 07 04:51 PM
Simple Simple Excel usage question BookerW Excel Discussion (Misc queries) 1 June 23rd 05 10:06 PM
Make it more simple or intuitive to do simple things Vernie Charts and Charting in Excel 1 March 16th 05 04:01 AM
simple question, hopefully a simple answer! Matt B Excel Programming 5 January 13th 04 08:43 PM


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