+ Reply to Thread
Results 1 to 8 of 8

Call sub for another sheet + when sheets name is string in sheet

  1. #1
    Registered User
    Join Date
    06-24-2013
    Location
    Kosice
    MS-Off Ver
    Excel 2003
    Posts
    53

    Call sub for another sheet + when sheets name is string in sheet

    Hi I

    have problem
    1., not working combo box, I dont know wha dont working

    2., call sub with sheets name , I dont know syntax what I want to do


    I want use button "Copy - call sub sorting + change year"

    FILE : - callSub.vA004.xlsm
    Attached Files Attached Files
    Last edited by Marianus; 06-30-2013 at 03:38 PM.

  2. #2
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Call sub for another sheet + when sheets name is string in sheet

    Hello,

    what exactly isn't working? If you mean that the combobox is empty this is because it is filled every time the sheet is activated and the following event is triggered:
    Please Login or Register  to view this content.
    If you want the combobox to be filled when you open the workbook paste the following into the "ThisWorkbook" module:
    Please Login or Register  to view this content.
    If there is sth else which isn't working please be so kind to explain the problem.
    Please use [CODE]-TAGS
    When your problem is solved mark the thread SOLVED
    If an answer has helped you please click to give reputation
    Read the FORUM RULES

  3. #3
    Registered User
    Join Date
    06-24-2013
    Location
    Kosice
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: Call sub for another sheet + when sheets name is string in sheet

    thanks , one moment please I do new excel (use your answer ) great , thank you

    syntax what working good

    Please Login or Register  to view this content.
    I want this , but my syntax is not good
    Please Login or Register  to view this content.
    I want use button "Copy - call sub sorting + change year" (I want change sheet with combobox , name of worksheet is year )
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Call sub for another sheet + when sheets name is string in sheet

    try this in "CommandButton2_Click" on the "Report"-sheet

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-24-2013
    Location
    Kosice
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: Call sub for another sheet + when sheets name is string in sheet

    Its interesing problem , working only year is 2012
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-24-2013
    Location
    Kosice
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: Call sub for another sheet + when sheets name is string in sheet

    Sorry . Im stupid I find error , my fault

    this is working sheet , thank you for help
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Call sub for another sheet + when sheets name is string in sheet

    Hi,

    the button "Copy - call sub sorting + change year" in this file: - callSub.vA004.xlsm it works for 2012 and 2013 for me

  8. #8
    Registered User
    Join Date
    06-24-2013
    Location
    Kosice
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: Call sub for another sheet + when sheets name is string in sheet

    HI ok thanks

+ 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