Auto Update with Vlookup or without Vlookup

m_vishal_c

Board Regular
Joined
Dec 7, 2016
Messages
209
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
hi, I have huge data in 2 Excel workbooks, i have to fetch data from workbook1 to workbook2. Both files are on shared drive. i tried to use vlookup to fetch data from Worbook1 to Workbook2 but due to having huge data(round about 5000 raws, 50 to 60 columns ), Vlookup does not get refresh automatically, i have to click F2 on particular record and hit enter then it get refreshed data( in workbook2).

Is there any way i can run macro which automatically updates data in workbook2 . Workbook 1 has more then one sheets as well workbook2 too.

Huge thanks in advance
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
That isn't too much data, Excel should be able to update in real time. Go to the excel ribbon-> Formulas -> Calculation Options (drop down on the right side of the ribbon) and make sure the Automatic box is checked.

Also if you want to force the entire workbook to recalculate you can do this:
excel ribbon-> Formulas -> Calculate Now (right side of the ribbon)
 
Last edited:
Upvote 0
That isn't too much data, Excel should be able to update in real time. Go to the excel ribbon-> Formulas -> Calculation Options (drop down on the right side of the ribbon) and make sure the Automatic box is checked.

Also if you want to force the entire workbook to recalculate you can do this:
excel ribbon-> Formulas -> Calculate Now (right side of the ribbon)

hi thanks for replying. I tried but it does not getting changed. is there any way for auto updation by VBA
 
Upvote 0
Code:
Sub Calc()
Dim ws As Worksheet

Application.Calculation = xlManual
For Each ws In ActiveWorkbook.Sheets
    ws.Calculate
Next ws
Application.Calculation = xlAutomatic

End Sub
 
Upvote 0
Code:
Sub Calc()
Dim ws As Worksheet

Application.Calculation = xlManual
For Each ws In ActiveWorkbook.Sheets
    ws.Calculate
Next ws
Application.Calculation = xlAutomatic

End Sub

hi Heaps thanks. it works
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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