Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Pennington
 
Posts: n/a
Default Using Command Button to copy cells

I have a command button on each sheet in a workbook except the last sheet.
How do I code each command button to copy TRUE values from a range of cells
on the same sheet into the last sheet so that the values are displayed
sequentially under a heading that is the value of a specific cell on the shee
from which they came? Or .
On Sheet 1. if any Cells(A3:M50)=TRUE Copy Sheet 1 Cell(A1) to Sheet6 A1 and
the values of the TRUE cells below it
One sheet 2 if any Cells(A3:M50)=TRUE Copy Sheet 2 Cell(A1) to Sheet6 in the
next blank cell in column A and the values of the TRUE cells below it.




  #2   Report Post  
Otto Moehrbach
 
Posts: n/a
Default

You say:
"under a heading that is the value of a specific cell on the sheet from
which they came?" but your examples do not demonstrate this. Did I miss
something?
To answer your question, you would use the same macro for each of the
command buttons. The code in the macro would operate on the active sheet
and copy to Sheet6.
But I don't understand what you want copied if any of those cells
(A3:M50) are True. If you wish, send me a sample of what you have and
include some examples of what you want copied and show where you want the
pasted values. My email address is . Remove the "nop"
from this address. HTH Otto
"Pennington" wrote in message
...
I have a command button on each sheet in a workbook except the last sheet.
How do I code each command button to copy TRUE values from a range of
cells
on the same sheet into the last sheet so that the values are displayed
sequentially under a heading that is the value of a specific cell on the
shee
from which they came? Or .
On Sheet 1. if any Cells(A3:M50)=TRUE Copy Sheet 1 Cell(A1) to Sheet6 A1
and
the values of the TRUE cells below it
One sheet 2 if any Cells(A3:M50)=TRUE Copy Sheet 2 Cell(A1) to Sheet6 in
the
next blank cell in column A and the values of the TRUE cells below it.






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
loan calculator cells, P&I formulas do not copy to second cloumn Mr. C Excel Worksheet Functions 4 March 5th 05 03:45 PM
code to Copy cells from the above row. Fernando Excel Worksheet Functions 1 January 27th 05 08:14 PM
copy blank cells Vicneswari Murugan Excel Discussion (Misc queries) 1 December 1st 04 02:12 PM
copy blank cells Vicneswari Murugan Excel Discussion (Misc queries) 0 December 1st 04 03:33 AM
how can I duplicate or copy a workbook then divide selected cells. macros excel... duplication and calculat Excel Discussion (Misc queries) 1 November 29th 04 03:16 PM


All times are GMT +1. The time now is 06:41 AM.

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"