Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 88
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 88
Default 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 -



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 88
Default 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 -



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default 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 -




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
copying and pasting from source sheet to destination sheet without naming source sht? Simon Lloyd[_753_] Excel Programming 5 June 2nd 06 06:11 PM
pasting to sheet without actually going to the sheet Mike Excel Programming 3 November 25th 05 05:46 PM
Pasting Into new sheet Todd Nelson Excel Discussion (Misc queries) 0 August 6th 05 01:17 AM
Problem pasting a row from a hidden sheet to the first free row on another visible sheet Didier Poskin Excel Programming 2 January 10th 04 01:18 AM
Pasting to Sheet Nigel[_7_] Excel Programming 2 November 14th 03 06:03 PM


All times are GMT +1. The time now is 12:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"