Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How to copy cells with HYPERLINK function?

Hi, my problem is that I have thousends of cells with HYPERLINK function in
it, but I need to paste them as paste special so the hiperlink is still
enabled but without leaving the function.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default How to copy cells with HYPERLINK function?

Here is a possible aproach that you may adapt to your sheet. Let's say we
have a single column of hyperlink formulas, column A. We will use a macro
copy the material in column A to column B, but without formulas.

1. make sure column B is empty (it will receive the converted links)
2. enter the following macro:

Sub cnvrt()
Dim s As String
For Each r In Selection
s = r.Formula
ss = Split(s, Chr(34))
ActiveSheet.Hyperlinks.Add anchor:=r.Offset(0, 1) _
, Address:=ss(1), TextToDisplay:=ss(3)
Next
End Sub

3. in the worksheet, hi-light the cells in col A that contain the hyperlink
formulas
4. run the macro

Non-formula hyperlinks will appear in column B. The stuff in column B is
what you can copy/paste
--
Gary''s Student - gsnu200732


"HYPERLINK Fuction and Paste Special?" wrote:

Hi, my problem is that I have thousends of cells with HYPERLINK function in
it, but I need to paste them as paste special so the hiperlink is still
enabled but without leaving the function.

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
Can't make hyperlink function work for hyperlink to website Frank B Denman Excel Worksheet Functions 15 February 5th 07 11:01 PM
How do I create a hyperlink to a cell with the hyperlink function S. Bevins Excel Worksheet Functions 2 July 20th 06 08:06 PM
Copy Function into other cells Peco Worker Excel Worksheet Functions 3 March 13th 06 04:33 PM
How to copy the hyperlink of a list of cells in another column jaya Excel Worksheet Functions 1 October 8th 05 03:34 PM
Intra-workbook hyperlink: macro/function to return to hyperlink ce marika1981 Excel Discussion (Misc queries) 3 May 6th 05 05:47 AM


All times are GMT +1. The time now is 08:01 PM.

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

About Us

"It's about Microsoft Excel"