Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to change Macro code?
Background:
I work for fazolis, franchise. I set up an excel worksheet that helps people count food on hand, and calculates what kind of food they are losing. Everything is working great... I have been using macros to update information on the sheet. I just send out a ~300KB excel file that Workbook().Activates to the other Workbook and does it stuff. However, with this I can not figure out how to change Macro code. I wanted to remove a few lines of code, and add a few lines of code to CommandButtons on various worksheets. I have attempted to use the SendKeys() command.. but, we all know how "fun" that can be and I'd rather not do it that way. Is there a way to change VBA code IN a Macro? Thanks in advance for the help!... -Kaisies |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to change Macro code?
Yep, all explained at http://www.cpearson.com/excel/vbe.htm
-- HTH RP (remove nothere from the email address if mailing direct) "Kaisies" wrote in message ... Background: I work for fazolis, franchise. I set up an excel worksheet that helps people count food on hand, and calculates what kind of food they are losing. Everything is working great... I have been using macros to update information on the sheet. I just send out a ~300KB excel file that Workbook().Activates to the other Workbook and does it stuff. However, with this I can not figure out how to change Macro code. I wanted to remove a few lines of code, and add a few lines of code to CommandButtons on various worksheets. I have attempted to use the SendKeys() command.. but, we all know how "fun" that can be and I'd rather not do it that way. Is there a way to change VBA code IN a Macro? Thanks in advance for the help!... -Kaisies |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to change Macro code?
I had the same problem before. Look in Chip Pearsons page on working
with the VBE programmatically http://www.cpearson.com/excel/vbe.htm good luck, Cesar Zapata |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Change a specific code to generic in VB macro | Excel Discussion (Misc queries) | |||
code to reassign a macro to a toolbar button because of path change | Excel Discussion (Misc queries) | |||
how do i change or make this macro??? pictures and code included | Charts and Charting in Excel | |||
Can You Change A CommandButton Code Using A Macro? | Excel Programming | |||
make macro change (delete) its own code | Excel Programming |