ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   help with macro (https://www.excelbanter.com/excel-programming/317896-help-macro.html)

Paul

help with macro
 
I would appreciate someone helping me with this.

I want to run this macro each time cell R1C8 exceeds 50.
I think I need a nested loop setup, but cannot make one
work.

}:-)

Sub reset()
Application.Goto Reference:="R4C5"
Selection.Copy
Application.Goto Reference:="R3C5"
Selection.PasteSpecial Paste:=xlValues,
Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
End Sub

Don Guillett[_4_]

help with macro
 
try
if cells(1,8)50 then cells(3,5).value=cells(4,5).value

--
Don Guillett
SalesAid Software

"Paul" wrote in message
...
I would appreciate someone helping me with this.

I want to run this macro each time cell R1C8 exceeds 50.
I think I need a nested loop setup, but cannot make one
work.

}:-)

Sub reset()
Application.Goto Reference:="R4C5"
Selection.Copy
Application.Goto Reference:="R3C5"
Selection.PasteSpecial Paste:=xlValues,
Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
End Sub





All times are GMT +1. The time now is 01:46 AM.

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