Finding a value and copying the formula from an adjacent cell

A

akronpow

I am trying to write a macro that takes a value in Sheet 1 and finds i
in Sheet 2. Then once the value is found in sheet 2, the hyperlin
formula in the adjacent right cell is copied over to a specific cell i
Sheet 1. I couldn't use the VLOOKUP function because that just carrie
over the value, but I need to formula to copy over
 
D

Don Guillett

does this work?

Sub findandcopyhyperlink()
Sheets("sheet2").Cells.Find(Range("a1")). _
Offset(, 1).Copy Range("b1")
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top