Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Last week, i had a workbook that worked perfectly. I went on vacatio
and when i came back i get an error "Sub or Fuction not defined". th only thing that it says is Private Sub CommandButton3_Click() Call changecolors End Sub what could possibly be wrong with this that was not wrong last week? and yes, i do have a module with the name changecolor -- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
A macro called "changecolors" cannot located.
You said a "module" called "changecolor" exists. But the macro looks for a "macro" (a subroutine) called "changecolor" to execute. Regards, Edwin Tam http://www.vonixx.com "scottnshelly " wrote: Last week, i had a workbook that worked perfectly. I went on vacation and when i came back i get an error "Sub or Fuction not defined". the only thing that it says is Private Sub CommandButton3_Click() Call changecolors End Sub what could possibly be wrong with this that was not wrong last week? and yes, i do have a module with the name changecolors |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I meant i have a macro named changecolors in a module.
this is in module2: Private Sub changecolors() this is in sheet1: Private Sub CommandButton3_Click() Call changecolors End Sub this worked the other day. thanks -- Message posted from http://www.ExcelForum.com |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Scott,
Your "changecolors" routine is private, so sheet1 cannot see it. Change it to Public. NickHK "scottnshelly " wrote in message ... I meant i have a macro named changecolors in a module. this is in module2: Private Sub changecolors() this is in sheet1: Private Sub CommandButton3_Click() Call changecolors End Sub this worked the other day. thanks. --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
using a defined Name in a function | Excel Worksheet Functions | |||
sumproduct function / VB user defined function | Excel Discussion (Misc queries) | |||
Max of a defined function | Excel Worksheet Functions | |||
Sub or Function not defined | Excel Programming | |||
User-Defined Function pre-empting Built-in Function? How to undo???? | Excel Programming |