Hi All
Want to thank the help i got earlier. Its muchly appreciated
Just one more :P
Is it possible to copy a whole row of data to a different sheet on the next free line in that sheet?
i hope this makes sense
Thanks in advance
Crampz
Hi All
Want to thank the help i got earlier. Its muchly appreciated
Just one more :P
Is it possible to copy a whole row of data to a different sheet on the next free line in that sheet?
i hope this makes sense
Thanks in advance
Crampz
Is it again related to hyperlink or a general question?
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread "Resolved", if the query is solved
Microsoft MVP: 2011 - Till Date IMP Links : Acceptable Use Policy, FAQ
MyGear:
Sony VGN-FZ27G with a triple boot between (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008) and (Win7+Office 2010+VS2010) || Sony VPCCB-45FN with a Win7+Office 2010+VS2010. VM: (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008), (Win8+Office 2010+VS2012) || Mac Book Pro (10.6.8) with Office 2011
Like this?
Code:Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink) Dim lRow As Long If Range(Target.Range.Address).Column = 2 Then lRow = Sheets("Sheet2").Range("A" & Rows.Count).End(xlUp).Row + 1 Target.Range.EntireRow.Copy Sheets("Sheet2").Rows(lRow) End If End Sub
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread "Resolved", if the query is solved
Microsoft MVP: 2011 - Till Date IMP Links : Acceptable Use Policy, FAQ
MyGear:
Sony VGN-FZ27G with a triple boot between (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008) and (Win7+Office 2010+VS2010) || Sony VPCCB-45FN with a Win7+Office 2010+VS2010. VM: (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008), (Win8+Office 2010+VS2012) || Mac Book Pro (10.6.8) with Office 2011
Just replace the code with this code in the sample that I uploaded in your previous workbook.![]()
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread "Resolved", if the query is solved
Microsoft MVP: 2011 - Till Date IMP Links : Acceptable Use Policy, FAQ
MyGear:
Sony VGN-FZ27G with a triple boot between (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008) and (Win7+Office 2010+VS2010) || Sony VPCCB-45FN with a Win7+Office 2010+VS2010. VM: (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008), (Win8+Office 2010+VS2012) || Mac Book Pro (10.6.8) with Office 2011
or thisCode:Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink) Dim lRow As Long If Range(Target.Range.Address).Column = 2 Then lRow = Sheets("Sheet2").Range("A" & Rows.Count).End(xlUp).Row + 1 Target.Range.EntireRow.Copy Sheets("Sheet2").Rows(lRow).PasteSpecial xlValues End If End Sub
Code:Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink) Dim lRow As Long If Range(Target.Range.Address).Column = 2 Then If Application.WorksheetFunction.CountA(Sheets("Sheet2").Columns(1)) = 0 Then lRow = 1 Else lRow = Sheets("Sheet2").Range("A" & Rows.Count).End(xlUp).Row + 1 End If Target.Range.EntireRow.Copy Sheets("Sheet2").Rows(lRow).PasteSpecial xlValues End If End Sub
Last edited by koolsid; Jul 22nd, 2012 at 01:29 PM.
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread "Resolved", if the query is solved
Microsoft MVP: 2011 - Till Date IMP Links : Acceptable Use Policy, FAQ
MyGear:
Sony VGN-FZ27G with a triple boot between (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008) and (Win7+Office 2010+VS2010) || Sony VPCCB-45FN with a Win7+Office 2010+VS2010. VM: (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008), (Win8+Office 2010+VS2012) || Mac Book Pro (10.6.8) with Office 2011
You are welcome![]()
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread "Resolved", if the query is solved
Microsoft MVP: 2011 - Till Date IMP Links : Acceptable Use Policy, FAQ
MyGear:
Sony VGN-FZ27G with a triple boot between (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008) and (Win7+Office 2010+VS2010) || Sony VPCCB-45FN with a Win7+Office 2010+VS2010. VM: (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008), (Win8+Office 2010+VS2012) || Mac Book Pro (10.6.8) with Office 2011