Following is an example of code I use to copy cells from one workbook to the active workbook.
This works very well but if the data in the cell is a hyperlink it will not keep the link so I use ugly code as follows
I would like to change that into
but I can not figure out how to remove the .Value in the first range so that the link is also copied and not just the cells value
Any sugestions...
Code:
Range("A21").Value = Workbooks("MovieDB.xls").Worksheets("Data").Range("R" & RowNum).Value 'Genre1
This works very well but if the data in the cell is a hyperlink it will not keep the link so I use ugly code as follows
Code:
Windows("MovieDB.xls").Activate
Range("AU" & RowNum).Copy 'External Link 1
Windows(WB).Activate
Range("L3").PasteSpecial
I would like to change that into
Code:
Range("L3").Value = Workbooks("MovieDB.xls").Worksheets("Data").Range("AU" & RowNum).Value 'External Link 1
but I can not figure out how to remove the .Value in the first range so that the link is also copied and not just the cells value
Any sugestions...