How to do this in a simple way?

deuce

Active Member
Joined
Oct 6, 2006
Messages
346
Office Version
  1. 2007
I am trying to automatically update the past 20 working days of data from an excel source CSV workbook into a target worksheet using the external data procedure but I am in the dark on how to get this done. Can someone kindly give a detailed procedure on how to do this?

The source workbook is updated in real time while it is closed but cannot be updated/written to if it is open. When I go to the source workbooks file location I can view the actual file only if I click on the view compatibility files option in windows 7, but if I try to browse to the source workbooks file location using the browse function the file is not visible at all.

What can I do to accomplish my task?

thanks and regards.
 
hi thanks for your response, can it be done to retrieve only the last N rows into the target workbook from the source workbook?

The source workbook contains 160,000 rows for every dataset and there are like 9 different sets.

i am trying to keep only the relevant data in the target workbook.

kind regards,
deuce.

Yes. The set up I suggested needs no change. You just need to prefix the relevant ranges with the relevant workbook and sheet names.
 
Upvote 0

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
hi aladin, thanks for the help so far, i put in the formula and it looks like it will work(need to test) but can you tell me how I replace the sheet name reference in the formula you provided with that of my source workbook in another folder?

target workbook and source workbook are in different folders.

thanks and regards,

deuce
 
Upvote 0
hi aladin, thanks for the help so far, i put in the formula and it looks like it will work(need to test) but can you tell me how I replace the sheet name reference in the formula you provided with that of my source workbook in another folder?

target workbook and source workbook are in different folders.

thanks and regards,

deuce

WB1

Activate A1
Type =
Go to WB2, Sheet1
Click on E2
Hit Enter

Copy the prefix you see on the Formula Bar.
Paste/Append the copied prefix in/to the target formulas.
 
Upvote 0
hi that is what i was trying all along but when i click on WB2 it just clicks normally without the activation ring.

I know how to switch sheet references for different worksheets in the same workbook but it i cannot figure out what i am doing wrong where the multiple workbooks are concerned.

i even tried to type in = then clicked on the windows icon to display the most recent documents but the source book was greyed out as well as all the documents in there, however i removed the = and clicked on the windows icon and they were not greyed out at all.

i also tried to swap by attempting to link WB1 with WB2 then WB2 to WB1.

I cannot seem to get it right. what do you suggest?
 
Upvote 0
hi, just an update, i managed to detect the problem that was causing it, the work book had been saved in binary format so i just saved it to reflect as a macro enabled workbook.

Hopefully this solves my problems. i will test out during the course of the following week and provide updates if required.

thanks.

aladin your the best!
 
Upvote 0
hi I have been experiencing this error all of a sudden and here is the description of it.

when i open the workbook i get the popup message


this workbook contains one or more links that cannot be updated.

to change the source of the links, or to attempt to update values again, click edit links.

to leave the links as is click continue.

i click on continue, but the rows in the new workbook are not being updated with the latest data from the source workbook.

if i click on edit links option under status i get the option open source to update values.

I need to update values without having to open the source workbooks. What can i do?

thanks and regards,
deuce.
 
Upvote 0
hi I have been experiencing this error all of a sudden and here is the description of it.

when i open the workbook i get the popup message


this workbook contains one or more links that cannot be updated.

to change the source of the links, or to attempt to update values again, click edit links.

to leave the links as is click continue.

i click on continue, but the rows in the new workbook are not being updated with the latest data from the source workbook.

if i click on edit links option under status i get the option open source to update values.

I need to update values without having to open the source workbooks. What can i do?

thanks and regards,
deuce.

The formulas we are invoking ordinarily would not lead to such problems. The location of the target book is probably changed from one session to another. Would you check for that?

Posted from Güzelçamlı at the Aegean cost.
 
Upvote 0
hi thanks for your response. when you say target workbook I think you mean the destination workbook? if so it is kept on my desktop the source workbook is kept in the program files directory.

I tried to create another workbook using the same formulas that you gave.

the data updates when the source workbook is open (meaning that in the formula that you have given) it is showing the name and cell references of the source workbook like Sheet1!A:A etc.

But when the source workbook is closed and the destination workbook is reopened then the same error is popping up and also I notice that the entire path down to the source workbook is given instead of sheet1!A:A i.e. ('c:\Program files\etc etc\Sheet1!A:A).

I have also set the proper settings in the data>edit links tabs but despite this the error is still coming up.

Now I don't know what to do to fix this error as it is very puzzling despite having the correct settings. What do you suggest?
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,291
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top