+ Reply to Thread
Results 1 to 4 of 4

Creating a class module with my VBA code

  1. #1
    Registered User
    Join Date
    03-26-2014
    MS-Off Ver
    Excel 2013
    Posts
    31

    Creating a class module with my VBA code

    Hi all,

    I'm fairly new to class modules. I have the current code and need to create a class module of it. How can I do so? Thanks!

    Please Login or Register  to view this content.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Creating a class module with my VBA code

    Class modules are for creating custom objects.
    What object are you trying to create?
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Registered User
    Join Date
    03-26-2014
    MS-Off Ver
    Excel 2013
    Posts
    31

    Re: Creating a class module with my VBA code

    Quote Originally Posted by mikerickson View Post
    Class modules are for creating custom objects.
    What object are you trying to create?
    I'm not too sure. Maybe a commandbutton where when I click it, it'll run that class object? My instructions are to use classes to create that macro only so anything is ok I guess.

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Creating a class module with my VBA code

    The result that you are getting can be gotten with the formula =2*SUMIF(Sheet1!A:A, "B")-SUM(Sheet1!A:A)

    I don't see any object that could be created or any properties that such an object might have.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 03-08-2014, 08:02 AM
  2. [SOLVED] Convert code in a class module to a macro
    By Consty1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-11-2013, 09:44 AM
  3. [SOLVED] ComboBox class .AddItem filled in class module
    By Jacques Grobler in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-03-2012, 05:48 AM
  4. Replies: 1
    Last Post: 08-30-2011, 02:23 AM
  5. Creating a class module for dbl clicking label
    By fire_water in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-28-2009, 10:58 AM

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