Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default when hyperlink pressed can I copy and past the followed cell coten

My problem is that I have some goods photo whenever you click a picture it
takes you to another worksheet with Item No. and desc. and price, what I need
to do is when I click an item no. it copy the item no, desc, price to a new
worksheet or new workbook.

Thanks in advance for any help
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default when hyperlink pressed can I copy and past the followed cell coten

You need a worksheet_doubleclick event that will do this
If desired, send your file to my address below. I will only look if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results.


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Rofaiel" wrote in message
...
My problem is that I have some goods photo whenever you click a picture it
takes you to another worksheet with Item No. and desc. and price, what I
need
to do is when I click an item no. it copy the item no, desc, price to a
new
worksheet or new workbook.

Thanks in advance for any help


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default when hyperlink pressed can I copy and past the followed cell coten

Assuming Item number is in Column A. Copy the code below to the worksheet
with Item number, description and price.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim lr As Long, sh As Worksheet, rng As Range
Set sh = ActiveSheet
'Get last row with data in col A
lr = sh.Cells(Rows.Count, 1).End(xlUp).Row
Set rng = sh.Range("A2:A" & lr)
If Not Intersect(Target, rng) Is Nothing Then
Set Newsh = Sheets.Add
ThisWorkbook.Save
sh.Range("A" & Target.Row & ":C" & Target.Row).Copy
ActiveSheet.Range("A" & ActiveSheet.Cells(Rows.Count, 1) _
.End(xlUp).Offset(1).Row).PasteSpecial Paste:=xlValues
'You can put a sheet name in quotes beloow and drow the rest.
Newsh.Name = "Sheet" & Sheets.Count
End If
End Sub

If this does not do what you want, then Don's offer is probably your best
bet.




"Rofaiel" wrote in message
...
My problem is that I have some goods photo whenever you click a picture it
takes you to another worksheet with Item No. and desc. and price, what I
need
to do is when I click an item no. it copy the item no, desc, price to a
new
worksheet or new workbook.

Thanks in advance for any help



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
copy cell B19:J19 Range datas from sheet1, and to past in sheet2 DJSK Excel Programming 6 June 18th 08 12:18 PM
Copy past function on cell containing selective formula Abid[_3_] Excel Programming 2 May 7th 08 07:49 PM
detect ctrl-c was pressed (in copy mode) from vba? Mad Scientist Jr Excel Discussion (Misc queries) 3 October 29th 06 06:34 AM
detect ctrl-c was pressed (in copy mode) from vba? Shailesh Shah[_2_] Excel Programming 0 October 28th 06 02:50 PM
detect ctrl-c was pressed (in copy mode) from vba? Jim Thomlinson Excel Programming 0 October 27th 06 10:26 PM


All times are GMT +1. The time now is 05:03 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"