Calculation Help and balances pleaseeeeee
you probably could get by with something like this:
Sub test()
Dim ws As Worksheet
Application.ScreenUpdating = False
For Each ws In Worksheets
If InStr(1, ws.Name, "_Balances") Then
With ws
.Range("G2").Value = .Range("G4").Value
With .Range("G3")
.Value = .Value + ws.Range("G20").Value
End With
With .Range("G10")
.Value = .Value + ws.Range("G21").Value
End With
End With
End If
Next
Application.ScreenUpdating = True
End Sub
--
Gary
"Yossy" wrote in message
...
I want to do this for Sheets that have e.g Book_Balances, Paper_Balances,
Pen_Balances. I have multiple sheets but this should only affect those sheet
with named _Balances added to their sheet name.
Thanks a big bunch
"Sheeloo" wrote:
You need to do this for ALL sheets or only for _Balances?
"Yossy" wrote:
I have a Workbook that contains multiple sheet. I want to calculate on
specific sheets named _Balances.
Copy G4 and paste value to G2.
Then I need to add G20 to G3.
Finally Add G21 to G10
Please all help totally appreciated. I have multiple sheets that these need
to be done on.
Thanks
|