ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Copying hyperlinks with VBA in Excel 2003 (https://www.excelbanter.com/excel-programming/395084-copying-hyperlinks-vba-excel-2003-a.html)

ian

Copying hyperlinks with VBA in Excel 2003
 
I am using a macro to copy data from one sheet to a new sheet and a
new workbook.

The original sheet has a column of working hyperlinks.

I am copying with code like this:

Workbooks("New workbook.xls").Sheets("Sheet1").Range("a" & i & ":dz" &
i).Value = _
Range("a" & i & ":dz" & i).Value

The hyperlinks do not work in the new sheets.

How can I format the cells as hyperlinks or copy the original
hyperlinks as hyperlinks?


Thanks



All times are GMT +1. The time now is 07:49 AM.

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