ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Finding a value and copying the formula from an adjacent cell (https://www.excelbanter.com/excel-programming/346617-finding-value-copying-formula-adjacent-cell.html)

akronpow[_3_]

Finding a value and copying the formula from an adjacent cell
 

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

--
akronpo
-----------------------------------------------------------------------
akronpow's Profile: http://www.excelforum.com/member.php...fo&userid=2910
View this thread: http://www.excelforum.com/showthread.php?threadid=48823


Don Guillett[_4_]

Finding a value and copying the formula from an adjacent cell
 
does this work?

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

--
Don Guillett
SalesAid Software

"akronpow" wrote in
message ...

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


--
akronpow
------------------------------------------------------------------------
akronpow's Profile:
http://www.excelforum.com/member.php...o&userid=29100
View this thread: http://www.excelforum.com/showthread...hreadid=488236





All times are GMT +1. The time now is 03:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com