Excel macro to copy paste cells

sabs2014

New Member
Joined
Nov 17, 2014
Messages
6
I need to copy the value in C35 to cell B35. The result should be "Good" which is defined as the difference in the values being not more than 1. Cell C35 has circular references to other worksheets. What macro can I use in cell B35 so it keeps pasting the value from C35 until the difference is 1 or less? Can you help please? My knowledge of excel macros is very basic.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
This is what I wrote =round(c35,0)
this copies the value from cell c35 to b35. now what would be the difference between writing this versus a macro?
 
Upvote 0
The problem is that I have a circular reference in C35. Writing the above does not recognize the circular reference. I need to macro that will recognize the circular reference and break it once the difference between the values are not more than 1
 
Upvote 0
That makes no sense.

Maybe this makes sense:

Sub CopyPasteSpecVal_()

Range("C35").Select
Selection.Copy
Range("B35").Select
ActiveSheet.PasteSpecial


'
' Keyboard Shortcut: Ctrl+Shift+B
'


I keep getting the error "Out of stack space." What am I doing wrong?
 
Upvote 0

Forum statistics

Threads
1,217,365
Messages
6,136,123
Members
449,993
Latest member
Sphere2215

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