Hello,
I have to sheets ... one sheet with printers including there ip adress and name .
The second one is a report dat the counter program on the servers gives me each month (this includes the printercounter : how much color how much scanned etc etc ...).
What i want to do is . i check the ip adress from the 1st sheet with the second sheet ... when the ip adress is found he needs to copy all the counter data and paste it in the first sheet next to the printer name.
So i have to define a range of cells to copy ... i use two counters to keep track of the row where im at .
Now i get stuck at the range defining ... ill copy my code and can someone look at it please.
If var = var2 Then
Range("h" & r & "
" & r).Select
Selection.Copy
Sheets("Blad1").Select
Range("i " & " 17:i" & "25").Select
ActiveSheet.Paste
r and i are the counters i use in the loops i created ... one loop to read the ipadress and then he jumps in the second loop and reads every ip on the second page ... if they match he copies the the data . But at the range defining he gives an error.
thx in advance
I have to sheets ... one sheet with printers including there ip adress and name .
The second one is a report dat the counter program on the servers gives me each month (this includes the printercounter : how much color how much scanned etc etc ...).
What i want to do is . i check the ip adress from the 1st sheet with the second sheet ... when the ip adress is found he needs to copy all the counter data and paste it in the first sheet next to the printer name.
So i have to define a range of cells to copy ... i use two counters to keep track of the row where im at .
Now i get stuck at the range defining ... ill copy my code and can someone look at it please.
If var = var2 Then
Range("h" & r & "
Selection.Copy
Sheets("Blad1").Select
Range("i " & " 17:i" & "25").Select
ActiveSheet.Paste
r and i are the counters i use in the loops i created ... one loop to read the ipadress and then he jumps in the second loop and reads every ip on the second page ... if they match he copies the the data . But at the range defining he gives an error.
thx in advance