Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro does not refresh on the "Calculate" command.
I have a macro in which I have the following Lines :
Public Sub CommandButton1_Click() Range("AF4").Select Range(ActiveCell, ActiveCell.End(xlDown)).Select Range("af3").Copy Selection Calculate End Sub The cell AF4 contains the function : =IF(LEFT($A3,1)="A",VLOOKUP($A3,STKD,AF$2,0),"---") It is design to compare the field at column A to a database named "STKD" and place the info on the rows below AF4. When I execute this Macro, it does not calculate ( I chose Manual Update on the options). Can anyone Help ? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro does not refresh on the "Calculate" command.
change
Calculate to Application.Calculate or Application.CalculateFull -- Regards, Tom Ogilvy "ch" wrote in message ... I have a macro in which I have the following Lines : Public Sub CommandButton1_Click() Range("AF4").Select Range(ActiveCell, ActiveCell.End(xlDown)).Select Range("af3").Copy Selection Calculate End Sub The cell AF4 contains the function : =IF(LEFT($A3,1)="A",VLOOKUP($A3,STKD,AF$2,0),"---") It is design to compare the field at column A to a database named "STKD" and place the info on the rows below AF4. When I execute this Macro, it does not calculate ( I chose Manual Update on the options). Can anyone Help ? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro does not refresh on the "Calculate" command.
Thanks Tom. It Worked !!! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Turn off "CALCULATE" on bottom of Excel worksheet. near "Ready" | Excel Discussion (Misc queries) | |||
Trying to calculate hours worked on timecard using "IF" command | Excel Worksheet Functions | |||
Functions for "current" & "previous" month to calculate data | Excel Worksheet Functions | |||
inserting a conditional "go to" command on a excel "if" function | Excel Worksheet Functions | |||
Is it possible to insert a macro command in an "IF" function? | Excel Worksheet Functions |