iainmartin100
New Member
- Joined
- Mar 9, 2011
- Messages
- 43
Hi,
Below is a short bit of code which seems to work sometimes but not others, if any one has a suggestions to how I can correct it to perform the calculation on all cells everytime that would be great.
Basiclly my aim is to look up a value on the current worksheet then to ask the user to select a file to perform the lookup value.
In the cell F10 I have this formula:
=VLOOKUP(A10,[fname]Hotel!$C:$Z,5,FALSE)
The marco to update is:
Range("F10").Select<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
ActiveCell.Formula = "=VLOOKUP(RC[-5],[fname]Hotel!C3:C26,5,FALSE)"<o></o>
Range("F10").Select<o></o>
Application.CalculateFull
The issue I have is that there are about 20 identical lookups (only variant is the first vlookup refrance A10 which changes to A11, A12 etc),
Sometimes this works and updates all the formulas and other times only the formula in F10 and the other remain unchanged?
Any help would be very greatfully recived.
Below is a short bit of code which seems to work sometimes but not others, if any one has a suggestions to how I can correct it to perform the calculation on all cells everytime that would be great.
Basiclly my aim is to look up a value on the current worksheet then to ask the user to select a file to perform the lookup value.
In the cell F10 I have this formula:
=VLOOKUP(A10,[fname]Hotel!$C:$Z,5,FALSE)
The marco to update is:
Range("F10").Select<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
ActiveCell.Formula = "=VLOOKUP(RC[-5],[fname]Hotel!C3:C26,5,FALSE)"<o></o>
Range("F10").Select<o></o>
Application.CalculateFull
The issue I have is that there are about 20 identical lookups (only variant is the first vlookup refrance A10 which changes to A11, A12 etc),
Sometimes this works and updates all the formulas and other times only the formula in F10 and the other remain unchanged?
Any help would be very greatfully recived.