Thanks Noorain and Ashish

On Mon, Nov 28, 2011 at 10:58 AM, NOORAIN ANSARI
<[email protected]>wrote:

> Dear Yahya,
>
> Please check attached sheet with Userform.
>
>
> On Mon, Nov 28, 2011 at 12:47 PM, Yahya Muhammad <[email protected]>wrote:
>
>> Thanks Ashish. It does the trick. Just one more question. Instead of
>> providing the combo box in a worksheet, If I want to keep the combo box in
>> a user form (which should open with the file) , how the code will look
>> like?.
>>
>>
>> On Mon, Nov 28, 2011 at 9:48 AM, ashish koul <[email protected]>wrote:
>>
>>> use in
>>>
>>> Private Sub Worksheet_Activate()
>>> Sheet1.ComboBox1.Clear
>>> Dim sh As Worksheet
>>> For Each sh In Worksheets
>>> Sheet1.ComboBox1.AddItem (sh.Name)
>>> Next
>>> End Sub
>>>
>>> On Mon, Nov 28, 2011 at 11:09 AM, Yahya Muhammad <[email protected]>wrote:
>>>
>>>>
>>>> Thanks Noorain. But the issue is the combo box is not dynamically
>>>> updated. For eg: if I insert one more sheet in the sample sheet, say
>>>> Sheet9, it will not appear in the combo box unless I close and reopen the
>>>> file. Any solutions?
>>>>
>>>>
>>>>
>>>> On Mon, Nov 28, 2011 at 8:18 AM, NOORAIN ANSARI <
>>>> [email protected]> wrote:
>>>>
>>>>> Dear Yahya,
>>>>>
>>>>>
>>>>> Please try below code and see attached sheet..
>>>>>
>>>>> Private Sub ComboBox1_Change()
>>>>> Sheets(ComboBox1.Value).Activate
>>>>> End Sub
>>>>>
>>>>> Private Sub Worksheet_SelectionChange(ByVal Target As Range)
>>>>> Dim sh As Worksheet
>>>>> For Each sh In Worksheets
>>>>> Sheet1.ComboBox1.AddItem (sh.Name)
>>>>> Next
>>>>> End Sub
>>>>>
>>>>>
>>>>> --
>>>>> Thanks & regards,
>>>>> Noorain Ansari
>>>>>  
>>>>> *http://excelmacroworld.blogspot.com/*<http://excelmacroworld.blogspot.com/>
>>>>> *http://noorain-ansari.blogspot.com/*<http://noorain-ansari.blogspot.com/>
>>>>>
>>>>> On Mon, Nov 28, 2011 at 1:26 AM, Yahya Muhammad <[email protected]>wrote:
>>>>>
>>>>>> Hi experts
>>>>>>
>>>>>> I have a work book which has a lot of worksheets. I have a master
>>>>>> sheet in the same workbook in which there is a combo box. I need this 
>>>>>> combo
>>>>>> box to have the names of all worksheets in the workbook. Any sheets
>>>>>> added/deleted in the workbook  should also be auto updated in the
>>>>>> combo box. When I select any worksheet name from the combo box, it should
>>>>>> take me to that particular worksheet. Can someone help me with a solution
>>>>>> please?
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Thanks and regards
>>>>>>
>>>>>> Yahya
>>>>>>
>>>>>> --
>>>>>> FORUM RULES (934+ members already BANNED for violation)
>>>>>>
>>>>>> 1) Use concise, accurate thread titles. Poor thread titles, like
>>>>>> Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need
>>>>>> Advice will not get quick attention or may not be answered.
>>>>>>
>>>>>> 2) Don't post a question in the thread of another member.
>>>>>>
>>>>>> 3) Don't post questions regarding breaking or bypassing any security
>>>>>> measure.
>>>>>>
>>>>>> 4) Acknowledge the responses you receive, good or bad.
>>>>>>
>>>>>> 5) Cross-promotion of, or links to, forums competitive to this forum
>>>>>> in signatures are prohibited.
>>>>>>
>>>>>> NOTE : Don't ever post personal or confidential data in a workbook.
>>>>>> Forum owners and members are not responsible for any loss.
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------------------------------
>>>>>> To post to this group, send email to [email protected]
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>  --
>>>>> FORUM RULES (934+ members already BANNED for violation)
>>>>>
>>>>> 1) Use concise, accurate thread titles. Poor thread titles, like
>>>>> Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need
>>>>> Advice will not get quick attention or may not be answered.
>>>>>
>>>>> 2) Don't post a question in the thread of another member.
>>>>>
>>>>> 3) Don't post questions regarding breaking or bypassing any security
>>>>> measure.
>>>>>
>>>>> 4) Acknowledge the responses you receive, good or bad.
>>>>>
>>>>> 5) Cross-promotion of, or links to, forums competitive to this forum
>>>>> in signatures are prohibited.
>>>>>
>>>>> NOTE : Don't ever post personal or confidential data in a workbook.
>>>>> Forum owners and members are not responsible for any loss.
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------------------------------
>>>>> To post to this group, send email to [email protected]
>>>>>
>>>>
>>>>  --
>>>> FORUM RULES (934+ members already BANNED for violation)
>>>>
>>>> 1) Use concise, accurate thread titles. Poor thread titles, like Please
>>>> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
>>>> will not get quick attention or may not be answered.
>>>>
>>>> 2) Don't post a question in the thread of another member.
>>>>
>>>> 3) Don't post questions regarding breaking or bypassing any security
>>>> measure.
>>>>
>>>> 4) Acknowledge the responses you receive, good or bad.
>>>>
>>>> 5) Cross-promotion of, or links to, forums competitive to this forum in
>>>> signatures are prohibited.
>>>>
>>>> NOTE : Don't ever post personal or confidential data in a workbook.
>>>> Forum owners and members are not responsible for any loss.
>>>>
>>>>
>>>> ------------------------------------------------------------------------------------------------------
>>>> To post to this group, send email to [email protected]
>>>>
>>>
>>>
>>>
>>> --
>>> *Regards*
>>> * *
>>> *Ashish Koul*
>>> *http://www.excelvbamacros.com/*
>>>
>>>
>>> P Before printing, think about the environment.
>>>
>>>
>>>  --
>>> FORUM RULES (934+ members already BANNED for violation)
>>>
>>> 1) Use concise, accurate thread titles. Poor thread titles, like Please
>>> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
>>> will not get quick attention or may not be answered.
>>>
>>> 2) Don't post a question in the thread of another member.
>>>
>>> 3) Don't post questions regarding breaking or bypassing any security
>>> measure.
>>>
>>> 4) Acknowledge the responses you receive, good or bad.
>>>
>>> 5) Cross-promotion of, or links to, forums competitive to this forum in
>>> signatures are prohibited.
>>>
>>> NOTE : Don't ever post personal or confidential data in a workbook.
>>> Forum owners and members are not responsible for any loss.
>>>
>>>
>>> ------------------------------------------------------------------------------------------------------
>>> To post to this group, send email to [email protected]
>>>
>>
>>  --
>> FORUM RULES (934+ members already BANNED for violation)
>>
>> 1) Use concise, accurate thread titles. Poor thread titles, like Please
>> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
>> will not get quick attention or may not be answered.
>>
>> 2) Don't post a question in the thread of another member.
>>
>> 3) Don't post questions regarding breaking or bypassing any security
>> measure.
>>
>> 4) Acknowledge the responses you receive, good or bad.
>>
>> 5) Cross-promotion of, or links to, forums competitive to this forum in
>> signatures are prohibited.
>>
>> NOTE : Don't ever post personal or confidential data in a workbook. Forum
>> owners and members are not responsible for any loss.
>>
>>
>> ------------------------------------------------------------------------------------------------------
>> To post to this group, send email to [email protected]
>>
>
>
>
> --
> Thanks & regards,
> Noorain Ansari
>  *http://excelmacroworld.blogspot.com/*<http://excelmacroworld.blogspot.com/>
> *http://noorain-ansari.blogspot.com/*<http://noorain-ansari.blogspot.com/>
>
>
>
>
> --
> Thanks & regards,
> Noorain Ansari
>  *http://excelmacroworld.blogspot.com/*<http://excelmacroworld.blogspot.com/>
> *http://noorain-ansari.blogspot.com/*<http://noorain-ansari.blogspot.com/>
>
>  --
> FORUM RULES (934+ members already BANNED for violation)
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> will not get quick attention or may not be answered.
>
> 2) Don't post a question in the thread of another member.
>
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
>
> 4) Acknowledge the responses you receive, good or bad.
>
> 5) Cross-promotion of, or links to, forums competitive to this forum in
> signatures are prohibited.
>
> NOTE : Don't ever post personal or confidential data in a workbook. Forum
> owners and members are not responsible for any loss.
>
>
> ------------------------------------------------------------------------------------------------------
> To post to this group, send email to [email protected]
>

-- 
FORUM RULES (934+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to [email protected]

Reply via email to