Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Code to calc
hi guys,
sorry for the stupid question but... I would like a code to calculate the wb when a cell value change, could you help? regards from Brazil Marcelo |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Code to calc
F9 will force Excel to recalculate the workbook.
Dave -- Brevity is the soul of wit. "Marcelo" wrote: hi guys, sorry for the stupid question but... I would like a code to calculate the wb when a cell value change, could you help? regards from Brazil Marcelo |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Code to calc
Dave thanks for your help,
I am talking about a ruge wb and it will be used by tge final users, I have been forced the manual calculation, what I'm looking for is a code that when the people selected a customer in a drop down box the refers cell will change and excel calc it. -- regards from Brazil Marcelo "Dave F" escreveu: F9 will force Excel to recalculate the workbook. Dave -- Brevity is the soul of wit. "Marcelo" wrote: hi guys, sorry for the stupid question but... I would like a code to calculate the wb when a cell value change, could you help? regards from Brazil Marcelo |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Code to calc
Maybe one of these (depending on what version of excel you're using--and what
you want to do): Application.Calculate Application.CalculateFull application.CalculateFullRebuild Look at VBA's help for details. Marcelo wrote: Dave thanks for your help, I am talking about a ruge wb and it will be used by tge final users, I have been forced the manual calculation, what I'm looking for is a code that when the people selected a customer in a drop down box the refers cell will change and excel calc it. -- regards from Brazil Marcelo "Dave F" escreveu: F9 will force Excel to recalculate the workbook. Dave -- Brevity is the soul of wit. "Marcelo" wrote: hi guys, sorry for the stupid question but... I would like a code to calculate the wb when a cell value change, could you help? regards from Brazil Marcelo -- Dave Peterson |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
Code to calc
Private Sub Worksheet_Change(ByVal Target As Range)
Const WS_RANGE As String = "B1:B40" On Error GoTo ws_exit: Application.EnableEvents = False If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then With Target Me.Calculate End With End If ws_exit: Application.EnableEvents = True End Sub 'This is worksheet event code, which means that it needs to be 'placed in the appropriate worksheet code module, not a standard 'code module. To do this, right-click on the sheet tab, select 'the View Code option from the menu, and paste the code in. -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "Marcelo" wrote in message ... Dave thanks for your help, I am talking about a ruge wb and it will be used by tge final users, I have been forced the manual calculation, what I'm looking for is a code that when the people selected a customer in a drop down box the refers cell will change and excel calc it. -- regards from Brazil Marcelo "Dave F" escreveu: F9 will force Excel to recalculate the workbook. Dave -- Brevity is the soul of wit. "Marcelo" wrote: hi guys, sorry for the stupid question but... I would like a code to calculate the wb when a cell value change, could you help? regards from Brazil Marcelo |
#6
Posted to microsoft.public.excel.misc
|
|||
|
|||
Code to calc
Hi Bob,
Perfect as usual ;-) -- regards from Brazil Marcelo "Bob Phillips" escreveu: Private Sub Worksheet_Change(ByVal Target As Range) Const WS_RANGE As String = "B1:B40" On Error GoTo ws_exit: Application.EnableEvents = False If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then With Target Me.Calculate End With End If ws_exit: Application.EnableEvents = True End Sub 'This is worksheet event code, which means that it needs to be 'placed in the appropriate worksheet code module, not a standard 'code module. To do this, right-click on the sheet tab, select 'the View Code option from the menu, and paste the code in. -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "Marcelo" wrote in message ... Dave thanks for your help, I am talking about a ruge wb and it will be used by tge final users, I have been forced the manual calculation, what I'm looking for is a code that when the people selected a customer in a drop down box the refers cell will change and excel calc it. -- regards from Brazil Marcelo "Dave F" escreveu: F9 will force Excel to recalculate the workbook. Dave -- Brevity is the soul of wit. "Marcelo" wrote: hi guys, sorry for the stupid question but... I would like a code to calculate the wb when a cell value change, could you help? regards from Brazil Marcelo |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
regular code module | Excel Discussion (Misc queries) | |||
code not unique find latest date | Excel Discussion (Misc queries) | |||
VLOOKUP for Zip Code Ranges | Excel Worksheet Functions | |||
Conform a total to a list of results? | Excel Discussion (Misc queries) | |||
Macro for changing text to Proper Case | Excel Worksheet Functions |