Copy value of Cell to other cell if >0

Nunp

New Member
Joined
Jun 5, 2011
Messages
3
Hello to all,

I dont now any coding :confused:, so your help will be very appreciated...
I need help creating a simple macro code to Copy the value of one Cell to other cell if the first >0.

If A1>0 copy the value to B1 if else do nothing....

Regards to all,
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hello,

First thanks for the fast reply.

My ploblem is a circular reference.

I need the value of A1 to calculate other formula... and A1 is calculated from this last formula....

A1 needs the result of C1 and C1 the result of A1

So if i copy only the value of A1 to other cell the problem maybe resolved.

Regards,
 
Upvote 0
I did a little code and i solved my ploblem, but i ask if is there a way to do this more faster.

because i need to run +100 :eeek: codes like the below, an the excel turns crazy (slower)


the code is:



Private Sub Worksheet_Calculate()
 
If Range("AZ27") <> Range("AZ33") Then
If Range("AZ27") <> 0 Then
Call Macro1
End If
End If
End Sub
 
Sub Macro1()
'
' Macro1 Macro

Range("AZ27").Select
Selection.Copy
Range("AZ33").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub


Regards to all
 
Upvote 0

Forum statistics

Threads
1,224,534
Messages
6,179,390
Members
452,909
Latest member
VickiS

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top