Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have many sheets with a command button on it using the same code.
I want to change this so I have one code. I put that code in a module and made it PUBLIC Public Sub Process() ' do stuff client = Me.Range("C4") ' do stuf end sub my Command button on each sheet now had this code: Private Sub CommandButton2_Click() Call process end sub The problem I have is at the "ME" statement gives me an error - "Invalid use of ME keyword" The subroutine takes inforrmation from the sheet with the command button and puts it on a different sheet. How do I code so the sheet the code is called from is the active sheet or it knows its the active sheet? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Knowing the creation date of an excel sheet email attachment | Excel Discussion (Misc queries) | |||
Copy from active sheet and paste into new sheet using info from cell in active | Excel Programming | |||
How save active workbook w/o knowing name | Excel Programming | |||
Referencing an External Sheet without Knowing its Name - XL2K | Excel Programming | |||
Need an EXPERT in VBA and knowing how to manipulate objects on an excel sheet | Excel Programming |