Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I am trying to make a checkbox copy a cell to a different location, and in the cells original location put the result of the moved cell + a waste percentage, in this case being 10% "1.1" The code looked okay to be except everytime i check to box to start the process it says sub or function not defined... please help me out if i'm doing something stupid. Thanks! Code below! Code: -------------------- Private Sub CheckBox1_Click() If Cell(Z20 = "1") Then Range("G20").Select Selection.Copy Range("AA20").Select ActiveSheet.Paste Range("G20").Select ActiveCell.FormulaR1C1 = "=RC[20]*1.1" Range("G20").Select ElseIf Cell(Z20 = "2") Then Range("C20").Select Selection.Copy Range("AA20").Select ActiveSheet.Paste Range("C20").Select ActiveCell.FormulaR1C1 = "=RC[20]*1.1" Range("C20").Select End If End Sub -------------------- -- foxgguy2005 ------------------------------------------------------------------------ foxgguy2005's Profile: http://www.excelforum.com/member.php...o&userid=23663 View this thread: http://www.excelforum.com/showthread...hreadid=376988 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
using a defined Name in a function | Excel Worksheet Functions | |||
Sub or function not defined | Excel Worksheet Functions | |||
sumproduct function / VB user defined function | Excel Discussion (Misc queries) | |||
Sub or Function not defined | Excel Programming | |||
User-Defined Function pre-empting Built-in Function? How to undo???? | Excel Programming |