LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default macro to paste active cell's full path into another cell

hello,
i think this will be fairly easy but i'm not able to get it to work.
i need a macro (triggered by a hot key) to capture the full path based
on the active/selected cell in a file. for example if A1 is the active
cell in a file "ABC.xls" the the macro should save the following as a
string: "J:/mydocuments/folder1/ABC.xls/A1"
the 2nd macro when run should then take this stored string and paste
it into the new active cell.

this will useful in documenting the exact location of items we look for
across many files

searching on this group, all i have so far is:

1
Sub path()
Dim sk As String
sk = ActiveWorkbook.path
End Sub

2
Sub pathpaste()
sk = ActiveCell.Value
End Sub

appreciate any help. thanks.

 
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
Keep full file path in cell reference dan Excel Discussion (Misc queries) 0 December 6th 06 12:26 AM
only the macro name and not the full path to show in the run box Richard Excel Discussion (Misc queries) 2 July 24th 06 07:08 PM
how to compare the active cell value to the previous cell's value crimsonkng Excel Programming 2 December 5th 05 03:19 PM
How to determine full path of table by a macro within it Jazz1934 Excel Programming 3 September 21st 05 08:41 AM
How to get the full path name of the open workbook in a macro Flystar[_10_] Excel Programming 3 May 13th 04 09:16 AM


All times are GMT +1. The time now is 12:37 PM.

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

About Us

"It's about Microsoft Excel"