Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Macro is changing values!!!


I have a ten column chart with the following format:

1---------------2----------------3----------------....
19-Aug---------26-Aug--------02-Sept.......
25-Aug---------01-Sept--------08-Sept.........

#####-------#####------------#####-------......
#####-------#####------------#####-------......
#####-------#####------------#####-------......
#####-------#####------------#####-------......

Now the macro deletes Row 1, copies the values (####) from row 2 to row
1; then, it changes Row1 dates to e.g. 26August to 01Sept, and finally
changes column 10 to the last week.

The problem arises when the new values (####) are different. Not only
is the new Row 1 different from the old Row 2, but Row 3 and Row 4 are
completely random values!

Here is the macro:

Sub Macro1()
'
' Macro1 Macro
' Macro recorded 15/05/2006 by Alex
'

'
Range("X9:AD127").Select
Range("X9:AF127").Select
Range("AF9").Activate
Selection.Copy
Range("W9").Select
ActiveSheet.Paste
Range("AF9:AF127").Select
Selection.ClearContents
Range("W4").Select
With Worksheets("Asphalt").Range("w7")
.Value = .Value + 7
End With
End Sub


--
aposatsk
------------------------------------------------------------------------
aposatsk's Profile: http://www.excelforum.com/member.php...o&userid=36709
View this thread: http://www.excelforum.com/showthread...hreadid=571766

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
how do I email amacro? leo Excel Worksheet Functions 24 August 9th 06 02:47 PM
Compiling macro based on cell values simonsmith Excel Discussion (Misc queries) 1 May 16th 06 08:31 PM
updating a spreadsheet in 1 field w/ out changing values in anoth rmbpjw Excel Worksheet Functions 1 April 14th 06 02:59 AM
Macro needed to Paste Values and prevent Macro operation thunderfoot Excel Discussion (Misc queries) 0 June 10th 05 03:38 PM
Passing selected workbook name and values to a macro simora Excel Worksheet Functions 0 May 25th 05 07:24 PM


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