Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Tina Bradshaw
 
Posts: n/a
Default Need VBA to move totals from one page to another

I need to be able to move totals from page two in my workbook to page one.
But if the cell in page one is already populated, I need VB to detect that
and then move the total down on cell in the same column.

How do i do that?
  #2   Report Post  
Posted to microsoft.public.excel.misc
bigwheel
 
Posts: n/a
Default Need VBA to move totals from one page to another

Hi Tina

Presumably, this is one of your first attempts to get a macro to do
something. Have you tried recording a new macro to "cut and paste" the cell
from sheet2 to sheet1?

Selection.Cut
Sheets("Sheet1").Select
Range("A1").Select
ActiveSheet.Paste

"Tina Bradshaw" wrote:

I need to be able to move totals from page two in my workbook to page one.
But if the cell in page one is already populated, I need VB to detect that
and then move the total down on cell in the same column.

How do i do that?

  #3   Report Post  
Posted to microsoft.public.excel.misc
Tina Bradshaw
 
Posts: n/a
Default Need VBA to move totals from one page to another

I know about the recording - guess I should have been more specific. I am
having problems getting it to move the totals if the orignal cell is already
populated.

"bigwheel" wrote:

Hi Tina

Presumably, this is one of your first attempts to get a macro to do
something. Have you tried recording a new macro to "cut and paste" the cell
from sheet2 to sheet1?

Selection.Cut
Sheets("Sheet1").Select
Range("A1").Select
ActiveSheet.Paste

"Tina Bradshaw" wrote:

I need to be able to move totals from page two in my workbook to page one.
But if the cell in page one is already populated, I need VB to detect that
and then move the total down on cell in the same column.

How do i do that?

  #4   Report Post  
Posted to microsoft.public.excel.misc
bigwheel
 
Posts: n/a
Default Need VBA to move totals from one page to another

In that case you could modify the recorded macro, in the case of the sample
add these lines at the end

If Range("A1") "" Then ' cell has data in it
Range("A2").Select ' select next cell
ActiveSheet.Paste
End If

"Tina Bradshaw" wrote:

I know about the recording - guess I should have been more specific. I am
having problems getting it to move the totals if the orignal cell is already
populated.

"bigwheel" wrote:

Hi Tina

Presumably, this is one of your first attempts to get a macro to do
something. Have you tried recording a new macro to "cut and paste" the cell
from sheet2 to sheet1?

Selection.Cut
Sheets("Sheet1").Select
Range("A1").Select
ActiveSheet.Paste

"Tina Bradshaw" wrote:

I need to be able to move totals from page two in my workbook to page one.
But if the cell in page one is already populated, I need VB to detect that
and then move the total down on cell in the same column.

How do i do that?

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 DO I MOVE ONE ROW TO ANOTHER PAGE USING A FORMULA. nancyk4544 Excel Worksheet Functions 1 October 12th 05 02:13 AM
save spreadsheet as web page bobmarshall043 Excel Discussion (Misc queries) 0 October 6th 05 08:35 PM
Move page breaks Judy Excel Discussion (Misc queries) 1 June 23rd 05 11:44 PM
lower horizontal page break will not move Pauline Excel Discussion (Misc queries) 4 February 27th 05 05:07 AM
excel 2003 page numbering art Excel Worksheet Functions 3 December 8th 04 10:49 PM


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