ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Please help combine two simple codes! (https://www.excelbanter.com/excel-programming/427092-please-help-combine-two-simple-codes.html)

J.W. Aldridge

Please help combine two simple codes!
 
FIRST
I need to first run the fill down code on each page except first
worksheet - "master data".

SECOND
I need to copy data range from all existing worksheets in workbook
(copy range and code given below as PART 2) and paste to next whatever
the next available row in existing sheet "master data".



PART 1
Range("G10").Select
ActiveCell.FormulaR1C1 = "=RIGHT(R4C[-4],4)"
If IsEmpty(ActiveCell) Then Exit Sub
Range(ActiveCell, ActiveCell.Offset(0, -1).End(xlDown).Offset(0,
1)).filldown

PART 2

Rows("10:10").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy



Don Guillett

Please help combine two simple codes!
 
You didn't like the answers to your previous posts.


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"J.W. Aldridge" wrote in message
...
FIRST
I need to first run the fill down code on each page except first
worksheet - "master data".

SECOND
I need to copy data range from all existing worksheets in workbook
(copy range and code given below as PART 2) and paste to next whatever
the next available row in existing sheet "master data".



PART 1
Range("G10").Select
ActiveCell.FormulaR1C1 = "=RIGHT(R4C[-4],4)"
If IsEmpty(ActiveCell) Then Exit Sub
Range(ActiveCell, ActiveCell.Offset(0, -1).End(xlDown).Offset(0,
1)).filldown

PART 2

Rows("10:10").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy




J.W. Aldridge

Please help combine two simple codes!
 
kept trying to combine and build from suggestions to work for me but
no success.
guess i haven't graduated to piecing codes together.
may have to stick to minor manipulations to codes for now.


Don Guillett

Please help combine two simple codes!
 

If desired, send your workbook to my address below along with exactly what
you want and before/after examples.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"J.W. Aldridge" wrote in message
...
FIRST
I need to first run the fill down code on each page except first
worksheet - "master data".

SECOND
I need to copy data range from all existing worksheets in workbook
(copy range and code given below as PART 2) and paste to next whatever
the next available row in existing sheet "master data".



PART 1
Range("G10").Select
ActiveCell.FormulaR1C1 = "=RIGHT(R4C[-4],4)"
If IsEmpty(ActiveCell) Then Exit Sub
Range(ActiveCell, ActiveCell.Offset(0, -1).End(xlDown).Offset(0,
1)).filldown

PART 2

Rows("10:10").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy





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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com