C
Carl Brehm
Onhand & Received are 2 named areas on different worksheets.
Both areas are the same size. Need to add received to the onhand area cell
for cell.
Tried the following but returns error 1004
The other problem is the range can change so using x & y like this will only
work until I change the ranges.
Private Sub UpdateOnhand()
Dim X As Integer
Dim Y As Integer
X = 0
Y = 0
Do
Do
Range("ONHAND").Offset(X, Y).Value = Range("ONHAND").Offset(X,
Y).Value + Range("Received").Offset(X, Y).Value
Y = Y + 1
Loop Until Y = 119
X = X + 1
Loop Until X = 7
End Sub
also tried
Range("ONHAND").Value = Range("ONHAND").Value + Range("Received").Value
Thanks in advance
--
Carl & Linda Brehm
Lake Lafourche Bird House
Hebert, LA
Keets, Tiels, GN Lories, Quakers
Mitred Conures, TAG's, Bourkes
Cages
Both areas are the same size. Need to add received to the onhand area cell
for cell.
Tried the following but returns error 1004
The other problem is the range can change so using x & y like this will only
work until I change the ranges.
Private Sub UpdateOnhand()
Dim X As Integer
Dim Y As Integer
X = 0
Y = 0
Do
Do
Range("ONHAND").Offset(X, Y).Value = Range("ONHAND").Offset(X,
Y).Value + Range("Received").Offset(X, Y).Value
Y = Y + 1
Loop Until Y = 119
X = X + 1
Loop Until X = 7
End Sub
also tried
Range("ONHAND").Value = Range("ONHAND").Value + Range("Received").Value
Thanks in advance
--
Carl & Linda Brehm
Lake Lafourche Bird House
Hebert, LA
Keets, Tiels, GN Lories, Quakers
Mitred Conures, TAG's, Bourkes
Cages