ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Pasting hyperlink from sheet A to Sheet B? (https://www.excelbanter.com/excel-programming/385193-pasting-hyperlink-sheet-sheet-b.html)

Chet

Pasting hyperlink from sheet A to Sheet B?
 
Does anyone know how to paste a hyperlink from sheet A cells(1,1) to
Sheet B cells(3,3) using VBA? The macro recorder apparently won't do
it for reasons unbeknownst to me.

Thanks,
Chet


Gary''s Student

Pasting hyperlink from sheet A to Sheet B?
 
Sub chet()
Set r1 = Sheets("Sheet A").Cells(1, 1)
Set r2 = Sheets("Sheet B").Cells(3, 3)
r1.Copy r2
End Sub


This wil take the hyperlink stored in Sheet A and copy it to Sheet B
--
Gary''s Student
gsnu200710


"Chet" wrote:

Does anyone know how to paste a hyperlink from sheet A cells(1,1) to
Sheet B cells(3,3) using VBA? The macro recorder apparently won't do
it for reasons unbeknownst to me.

Thanks,
Chet



Chet

Pasting hyperlink from sheet A to Sheet B?
 
Hi Gary's student,
Are you sure that will copy the hyperlink and not just the cell
values? Thx Chet :)

On Mar 13, 12:17 pm, Gary''s Student
wrote:
Sub chet()
Set r1 = Sheets("Sheet A").Cells(1, 1)
Set r2 = Sheets("Sheet B").Cells(3, 3)
r1.Copy r2
End Sub

This wil take the hyperlink stored in Sheet A and copy it to Sheet B
--
Gary''s Student
gsnu200710



"Chet" wrote:
Does anyone know how to paste a hyperlink from sheet A cells(1,1) to
Sheet B cells(3,3) using VBA? The macro recorder apparently won't do
it for reasons unbeknownst to me.


Thanks,
Chet- Hide quoted text -


- Show quoted text -




Chet

Pasting hyperlink from sheet A to Sheet B?
 
It did work.. !.. nice and simple.. i like it..!.. thx Chet


On Mar 13, 12:17 pm, Gary''s Student
wrote:
Sub chet()
Set r1 = Sheets("Sheet A").Cells(1, 1)
Set r2 = Sheets("Sheet B").Cells(3, 3)
r1.Copy r2
End Sub

This wil take the hyperlink stored in Sheet A and copy it to Sheet B
--
Gary''s Student
gsnu200710



"Chet" wrote:
Does anyone know how to paste a hyperlink from sheet A cells(1,1) to
Sheet B cells(3,3) using VBA? The macro recorder apparently won't do
it for reasons unbeknownst to me.


Thanks,
Chet- Hide quoted text -


- Show quoted text -




Gary''s Student

Pasting hyperlink from sheet A to Sheet B?
 
I just tested it. Put http://www.cnn.com in A1

it copied EVERYTHING:

1. cell contents
2. cell formatting
3. cell hyperlink
4. cell comments

Just give it a try
--
Gary''s Student
gsnu200710


"Chet" wrote:

Hi Gary's student,
Are you sure that will copy the hyperlink and not just the cell
values? Thx Chet :)

On Mar 13, 12:17 pm, Gary''s Student
wrote:
Sub chet()
Set r1 = Sheets("Sheet A").Cells(1, 1)
Set r2 = Sheets("Sheet B").Cells(3, 3)
r1.Copy r2
End Sub

This wil take the hyperlink stored in Sheet A and copy it to Sheet B
--
Gary''s Student
gsnu200710



"Chet" wrote:
Does anyone know how to paste a hyperlink from sheet A cells(1,1) to
Sheet B cells(3,3) using VBA? The macro recorder apparently won't do
it for reasons unbeknownst to me.


Thanks,
Chet- Hide quoted text -


- Show quoted text -






All times are GMT +1. The time now is 06:44 PM.

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