Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Kanga 85
 
Posts: n/a
Default

Thanks,
This looks simple and repects my active cell.

"JE McGimpsey" wrote:

One way:

Public Sub SubtractA1()
Range("A1").Copy
ActiveCell.Resize(1, 30).PasteSpecial _
Paste:=xlValues, _
Operation:=xlSubtract, _
SkipBlanks:=False, _
Transpose:=False
Application.CutCopyMode = False
End Sub


In article ,
"Kanga 85" wrote:

I need a macro that will do the following:
Take the cell highlighed and the next 29 cells in that row,
Subtract the value of A1 from each of these cells and paste the new value
(not the formula) into the same 30 cells,
Do this only once.

Thanks for any help.


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
Highest Value / Circular Reference Help Josh M Excel Discussion (Misc queries) 1 May 23rd 05 07:33 PM
Highest Value / Circular Reference Help Josh M Excel Worksheet Functions 0 May 23rd 05 06:49 PM
Macro to Reference Column Next to Current Reference dolphinv4 Excel Discussion (Misc queries) 2 April 11th 05 08:36 AM
Avoiding circular reference on formula Chuck W Excel Discussion (Misc queries) 4 February 22nd 05 02:52 AM
Help solve a Circular Reference brupub Excel Worksheet Functions 6 February 14th 05 07:11 AM


All times are GMT +1. The time now is 04:09 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"