+ Reply to Thread
Results 1 to 6 of 6

Visual Basic code available for all open workbooks

  1. #1
    KristiB
    Guest

    Visual Basic code available for all open workbooks

    I found the coding on the Pearson website for how to count cells based on the
    color of the cell. WOW! That is just what I have been trying to figure out,
    and it works perfectly.

    I want to be able to access that coding no matter what workbook I open,
    without having to copy the module from one workbook to another each time. I
    tried saving it in my Personal Macro Workbook, but that didn't work.

    Any suggestions?

  2. #2
    Bob Phillips
    Guest

    Re: Visual Basic code available for all open workbooks

    What happened when it didn't work?

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "KristiB" <[email protected]> wrote in message
    news:[email protected]...
    > I found the coding on the Pearson website for how to count cells based on

    the
    > color of the cell. WOW! That is just what I have been trying to figure

    out,
    > and it works perfectly.
    >
    > I want to be able to access that coding no matter what workbook I open,
    > without having to copy the module from one workbook to another each time.

    I
    > tried saving it in my Personal Macro Workbook, but that didn't work.
    >
    > Any suggestions?




  3. #3
    KristiB
    Guest

    Re: Visual Basic code available for all open workbooks

    I get a #NAME? error, so it is not recognizing the =countbycolor function in
    the new workbook.

    KB

    "Bob Phillips" wrote:

    > What happened when it didn't work?
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "KristiB" <[email protected]> wrote in message
    > news:[email protected]...
    > > I found the coding on the Pearson website for how to count cells based on

    > the
    > > color of the cell. WOW! That is just what I have been trying to figure

    > out,
    > > and it works perfectly.
    > >
    > > I want to be able to access that coding no matter what workbook I open,
    > > without having to copy the module from one workbook to another each time.

    > I
    > > tried saving it in my Personal Macro Workbook, but that didn't work.
    > >
    > > Any suggestions?

    >
    >
    >


  4. #4
    Duke Carey
    Guest

    Re: Visual Basic code available for all open workbooks

    try

    =personal.xls!countybycolor(...

    "KristiB" wrote:

    > I get a #NAME? error, so it is not recognizing the =countbycolor function in
    > the new workbook.
    >
    > KB
    >
    > "Bob Phillips" wrote:
    >
    > > What happened when it didn't work?
    > >
    > > --
    > >
    > > HTH
    > >
    > > RP
    > > (remove nothere from the email address if mailing direct)
    > >
    > >
    > > "KristiB" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > I found the coding on the Pearson website for how to count cells based on

    > > the
    > > > color of the cell. WOW! That is just what I have been trying to figure

    > > out,
    > > > and it works perfectly.
    > > >
    > > > I want to be able to access that coding no matter what workbook I open,
    > > > without having to copy the module from one workbook to another each time.

    > > I
    > > > tried saving it in my Personal Macro Workbook, but that didn't work.
    > > >
    > > > Any suggestions?

    > >
    > >
    > >


  5. #5
    KristiB
    Guest

    Re: Visual Basic code available for all open workbooks

    That worked!

    Thanks bunches!

    KB

    "Duke Carey" wrote:

    > try
    >
    > =personal.xls!countybycolor(...
    >
    > "KristiB" wrote:
    >
    > > I get a #NAME? error, so it is not recognizing the =countbycolor function in
    > > the new workbook.
    > >
    > > KB
    > >
    > > "Bob Phillips" wrote:
    > >
    > > > What happened when it didn't work?
    > > >
    > > > --
    > > >
    > > > HTH
    > > >
    > > > RP
    > > > (remove nothere from the email address if mailing direct)
    > > >
    > > >
    > > > "KristiB" <[email protected]> wrote in message
    > > > news:[email protected]...
    > > > > I found the coding on the Pearson website for how to count cells based on
    > > > the
    > > > > color of the cell. WOW! That is just what I have been trying to figure
    > > > out,
    > > > > and it works perfectly.
    > > > >
    > > > > I want to be able to access that coding no matter what workbook I open,
    > > > > without having to copy the module from one workbook to another each time.
    > > > I
    > > > > tried saving it in my Personal Macro Workbook, but that didn't work.
    > > > >
    > > > > Any suggestions?
    > > >
    > > >
    > > >


  6. #6
    Chip Pearson
    Guest

    Re: Visual Basic code available for all open workbooks

    Just adding to the others' posts, if you put the function in an
    Add-In, you don't need to prefix the call with the workbook name.


    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com


    "KristiB" <[email protected]> wrote in message
    news:[email protected]...
    >I found the coding on the Pearson website for how to count cells
    >based on the
    > color of the cell. WOW! That is just what I have been trying
    > to figure out,
    > and it works perfectly.
    >
    > I want to be able to access that coding no matter what workbook
    > I open,
    > without having to copy the module from one workbook to another
    > each time. I
    > tried saving it in my Personal Macro Workbook, but that didn't
    > work.
    >
    > Any suggestions?




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1