Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a command button that when clicked is supposed to multiple the
value in R33 by 115% if cell N8 = Yes and by 130% if cell N8 = No. What's wrong with my code? ****** Public Sub Calc_Freight() Dim Assembly As String Assembly = Range("N8") Application.ScreenUpdating = False Application.ActiveSheet.Range("R33").Select Application.ScreenUpdating = True Select Case ("Assembly") Case "No" For Each cell In Selection cell.Value = cell.Value * 1.3 Next Case "Yes" For Each cell In Selection cell.Value = cell.Value * 1.15 Next End Select End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Command button code | Excel Programming | |||
Macro won't execute from a Command Button | Excel Programming | |||
How do I execute command from button or hyperlink? | Excel Discussion (Misc queries) | |||
Command button - won't execute twice in sequence | Excel Programming | |||
Programming command button to execute on a different worksheet | Excel Programming |