Hi,
It's not clear why you first copy F4 from the Tabela sheet (which doesn't actually contain a table and then paste to G17 on a sheet, then copy J5 and immediately paste that to the same G17 cell you've just updated, and then repeat the J5 copy paste G17 a second time.
In general this is what I think you're trying to do. I can't be certain of which cells need pasting to so it uses your G17 and one I've assumed J17 - change that as necessary. You didn't say whether you are copying text or numeric values so I've Dim'd the vVal1 and vVal2 as Variants. If they're always the same text or number then Dim them appropriately, e.g. Dim st1 as String or Dim lVal1 as Long
Incidentally it's always best to use theVBA Sheet Code name in code, NOT the tab name, so in your case instead of
vVal1 = Sheets("Tabela_COREP").Range("F4").Value
use
vVal1 = Sheet3.Range("F4").Value
Bookmarks