Consulting

Results 1 to 6 of 6

Thread: Userform_Activate

  1. #1
    VBAX Contributor Daxton A.'s Avatar
    Joined
    Jun 2004
    Location
    Biloxi, Mississippi
    Posts
    143
    Location

    Post Userform_Activate

    The problem I am having is that I currently have a Table of Contents Page that has a listbox of all the current worksheets in the workbook. I am creating a "New" worksheet function that inserts a new worksheet.

    I have some knowledge but very little. I have the Userform_Activate() downpat but I am not sure how to reactivate the userform with its new index that has been inserted.
    Attached Files Attached Files
    Last edited by Daxton A.; 11-25-2012 at 12:05 PM. Reason: Adding Spreadsheet

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Where is this listbox, which sheet?
    ____________________________________________
    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 Contributor Daxton A.'s Avatar
    Joined
    Jun 2004
    Location
    Biloxi, Mississippi
    Posts
    143
    Location

    Reply to xld

    frmCurrentSheet or Ctrl + Shift + F

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Apart from the fact that it errors when you click Insert Sheet, should it show the frmSheetname and then the user types in the sheet name they want to add? If so, what is that Userform Deactivate supposed to be doing, and why not give a list of all sheets in the workbook that aren't already listed, rather than type it in?
    ____________________________________________
    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

  5. #5
    VBAX Contributor Daxton A.'s Avatar
    Joined
    Jun 2004
    Location
    Biloxi, Mississippi
    Posts
    143
    Location

    Hmmm....

    This is what is in my head. (i.e. what I am wanting)

    Step 1: Ctrl + Shift + F
    Step 2: The Userform activates pulling all the names of the worksheets.
    (just for readability)
    Step 3: They can then Delete or Insert Sheets without leaving the form.
    Step 4: Insert: Pulls up a new userform with a textbox for 31 characters allowed. The user
    inputs the new sheet name. Then it gets placed alphabetically in the workbook and
    the listbox gets cleared and the worksheet names get renamed in the pool.

    You can delete the Deactivate module please. I was trying to figure it out, forgot that i did not delete it.

    (I am always learning new things, which that can be really horrible, lol. Being that I cant keep up with the things that I've learned!) That is my explanation for the useless info being there. I have not cleaned it up yet.

    Quote Originally Posted by xld
    Apart from the fact that it errors when you click Insert Sheet, should it show the frmSheetname and then the user types in the sheet name they want to add? If so, what is that Userform Deactivate supposed to be doing, and why not give a list of all sheets in the workbook that aren't already listed, rather than type it in?
    Last edited by Daxton A.; 11-25-2012 at 06:05 PM. Reason: Adding Info

  6. #6
    VBAX Contributor Daxton A.'s Avatar
    Joined
    Jun 2004
    Location
    Biloxi, Mississippi
    Posts
    143
    Location

    This is a new clean copy of what I have.

    Hope this helps!
    Attached Files Attached Files

Posting Permissions

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