Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Macro undoes my work. Help.

I'm attempting to use a recorded macro to streamline a rather tedious process.

the code looks like this:

Sheets("TMY Analysis 3-6").Select
Range("A2:I2").Select
Selection.Copy
Sheets("Weather Stations").Select
Range("A60:I60").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
Range("A61").Select

Doesn't look terrible, except that I have to repeat this over 2000 times.

But my problem is that when I change some inputs and run the macro again it
overwrites what the macro wrote with the original inputs.

So my question is, how do I code the macro so that it moves on to the next
row of the sheet so when I use it again with inputs the new data is written
below the old data.

I'm compiling all this data into a single sheet to export to a .csv.
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
Macro to update a column in a work based on another work sheet WickerMan New Users to Excel 1 December 4th 09 12:58 PM
Macro undoes my work. Help. Joel Excel Programming 0 June 15th 09 09:55 PM
macro doesn't work Seeker Excel Programming 4 March 21st 09 05:27 AM
Macro works Macro does not work Wanna Learn Excel Discussion (Misc queries) 4 March 24th 08 12:51 PM
If I have a work sheet protected and try to run a macro to hide rows or columns it won't work. Correct? Marc Excel Programming 2 July 12th 06 04:10 AM


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