Try this:
![]()
Sub test() 'Get zip from Data sheet & Copy Sheets("data").Cells.Find("zip").Offset(0, 1).Copy 'Paste to Tool sheet Sheets("Tool").Range("D10").PasteSpecial Application.CutCopyMode = False End Sub
Try this:
![]()
Sub test() 'Get zip from Data sheet & Copy Sheets("data").Cells.Find("zip").Offset(0, 1).Copy 'Paste to Tool sheet Sheets("Tool").Range("D10").PasteSpecial Application.CutCopyMode = False End Sub
or maybe
VBA Noob![]()
Sheets("Tool").Range("D10").Value = Sheets("data").Cells.Find("zip").Offset(0, 1).Value
_________________________________________
![]()
![]()
Credo Elvem ipsum etian vivere
_________________________________________
A message for cross posters
Please remember to wrap code.
Forum Rules
Please add to your signature if you found this link helpful. Excel links !!!
Thanks for both your responses! VBA noob your simple 1 liner worked perfectly. I always record my macros and excel uses so many steps. It is nice to see real programing. Thanks again!
~RUTH~
What if instead of the value to be the same you wanted it to ref the other cell like =A1 not the value of A1.
~RUTH~
Try this, untested:
![]()
Sheets("Tool").Range("D10").Formula = "=" & Sheets("data").Cells.Find("zip").Offset(0, 1).Address
No that didn't do it. Instead it gave me an =$B$8 as text and also that ref that sheet not the sheet it came from. So even if it wasn't text the formula is wrong.
~RUTH~
As I also say. Post the file and tell us your expected result
VBA Noob
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks