Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default Need to modify one small peice of code...

have the following that was provided to me by someone in this newsgroup
(Thanks Bernie
)
What I need to do now, is to also have it fill in series also col BZ. I
tried what I could figure out, but it only selected the top two rows and did
not fill, or it filled the whole series with numbers...

If it helps, col A and BZ have the same info. I am putting this in as a ref
point to tell me if any of my SORTS misaligned my data.

Currently, this does what I needed it to do, except now I need to also fill
col BZ
Just for ref, what this does, is to copy a select groups of records from
whatever sheet I am on, pastes it to the bottom of Finished Results, and
then for the selected records, fill col A from the record above with
series. (Most of you guys probably can figure this out though...)

Thanks
Bruce


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


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
Modify code bigmaas Excel Discussion (Misc queries) 2 February 16th 10 10:51 AM
Modify Code Richard Excel Worksheet Functions 0 March 13th 08 08:19 PM
Printing two two pages on one peice of paper Lgirl Excel Discussion (Misc queries) 1 November 8th 07 12:05 AM
Code for modify a column CCC Excel Programming 1 October 25th 03 04:16 PM
Modify Find Code Al[_6_] Excel Programming 1 July 15th 03 10:35 PM


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