LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Copy data automatically from another workbook

Thank you. This put me in the right direction. I was able to get the macro to
do what I wanted it to using the input cell value as a variable in the code -
and used the offset function to enter the links into the related cells in the
row.
It's working! I will just need to tweak a few things to make it more user
friendly.
Thank you!

--
CA Custom Payroll


"J Sedoff" wrote:

In that case, use VBA macros. Something in the vein of:

'Contains the path "='T:\certifcation\Skimming Trans\2008\Jul 08\8456318R"
for the month of July 2008
file_path = "='" & the_path & this_year & "\" & this_month & " " & _
Format(yesterday, "yy") & "\" & cells(1,2).value
cells(1,1).formula = "=" & file_path

For example you'd like something like the following in a particular cell,
"='DriveLetter:\Folder1\Folder2\[FileName.xls]SheetName (2)'!$K$12"
which gives
=C:\My Documents\Music\[My Cds.xls]Favorite Country'!$K$12

Obviously that won't get you all that you need, but do you at least get the
general idea?

If you use macros, the values will still update without needing to have
those files open, and it creates a direct link.

Hope this helps, Jim
--
I appreciate any feedback.



 
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
Enter in a workbook and copy to another automatically Shaun k Excel Programming 2 November 1st 07 09:09 PM
How do I automatically copy data from one workbook to another? urguy Excel Worksheet Functions 1 September 22nd 06 03:50 PM
Copy A Workbook Automatically Len Excel Programming 1 May 16th 06 09:55 AM
Copy a Workbook Automatically Len Excel Worksheet Functions 1 May 12th 06 12:00 AM
loop through a column on a workbook copying data on each row to another workbook, then copy data back to the original workbook burl_rfc Excel Programming 1 April 1st 06 08:48 PM


All times are GMT +1. The time now is 02:53 AM.

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"