ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Help modifying code (https://www.excelbanter.com/excel-programming/284911-help-modifying-code.html)

BruceJ[_2_]

Help modifying code
 
I have the following code:

Sub cutpasteseries()
Dim myCell As Range
Selection.Copy
Sheets("Finished Results").Select
Set myCell = Range("A65536").End(xlUp)(2)
myCell.PasteSpecial Paste:=xlPasteValues, _
Operation:=xlNone, _
SkipBlanks:=False, _
Transpose:=False
Application.CutCopyMode = False
Range(myCell(0), Range("B65536").End(xlUp)(1, 0)).Select
Selection.DataSeries Type:=xlLinear, Step:=1
Range(myCell, Range("A65536").End(xlUp)).EntireRow.Select
Selection.Copy
End Sub

It does what it is supposed to do (copy the highlighted cells, to "Finished
Results" and then fill col A down from the results in A from the row above.

but I need to have it fill down in column BZ as well as A Both from the row
above the paste
How would I modify this?

know that it is this section
Range(myCell(0), Range("B65536").End(xlUp)(1, 0)).Select 'mycell(0)
needs to be mycell(0,78) but I am not sure about the rest..
Selection.DataSeries Type:=xlLinear, Step:=1
Range(myCell, Range("A65536").End(xlUp)).EntireRow.Select


Thanks!
Bruce





Bill Manville

Help modifying code
 
BruceJ wrote:
but I need to have it fill down in column BZ as well as A Both from the row
above the paste
How would I modify this?

know that it is this section
Range(myCell(0), Range("B65536").End(xlUp)(1, 0)).Select 'mycell(0)
needs to be mycell(0,78) but I am not sure about the rest..
Selection.DataSeries Type:=xlLinear, Step:=1


Range(myCell(0,78), Range("B65536").End(xlUp)(1,77).Select
Selection.DataSeries Type:=xlLinear, Step:=1

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - reply in newsgroup



All times are GMT +1. The time now is 10:29 AM.

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