Consulting

Results 1 to 4 of 4

Thread: Solved: Fix the Controls

  1. #1
    Moderator VBAX Master Tommy's Avatar
    Joined
    May 2004
    Location
    Houston, TX
    Posts
    1,184
    Location

    Solved: Fix the Controls

    I have this workbook that is driving me Daisy.
    I can fix the captions by code, I can delete them with code.

    What I can't seem to do is fix it without writting code. I like writting code. I prefer to write code. I don't like writting code that will be used once and thown away never to be used again. Besides that I think there is another way. SO my question.

    1) How do I change the controls that are imbedded into the sample worksheet posted?
    2)Is there a function that counts the number of worksheets?

    Thanks so much for your time in advance.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    They are ActiveX controls, so just go into desgn mode, click the Design Mode icon on th Controls Toolbox.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Guru Kenneth Hobs's Avatar
    Joined
    Nov 2005
    Location
    Tecumseh, OK
    Posts
    4,956
    Location
    To fix the captions, click the Design icon on the Control Toolbox toolbar. Right click object and Checkbox Object > Edit.

    For the sheet count, add a named range called wsCount and set the Refers =Get.Workbook(4). Then in a cell, =wsCount+0*Now(). When the next calculation occurs, the cell will update.

  4. #4
    Moderator VBAX Master Tommy's Avatar
    Joined
    May 2004
    Location
    Houston, TX
    Posts
    1,184
    Location
    OK I got it already.

    Boy howdy, that was just to simple, I will have to think of more difficult ones. Well I guess that will have to wait until I can figure out the easy ones. LOL

Posting Permissions

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