How to get Sheet list?

bhandari

Active Member
Joined
Oct 17, 2017
Messages
359
i am getting error,can i get some help here.how to collect the worksheet names in listbox by using macro?

i have around 20 sheets..i am planning to add few more sheets instead of finding all the sheets i want to find it through list box..

by using command buttons and listbox.
 
is it possible to create sheet tabs by using cell reference
A1=200+000
A2=245+688
A3=658+555
by using range property
i got it..can you please solve this small issue,i wan looking for macro
 
Upvote 0

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Well this is a copy of your other posting so we should be answering this question in your other post.
But you need to explain in more detail what you want. I do not understand:

is it possible to create sheet tabs by using cell reference
A1=200+000
A2=245+688
A3=658+555
by using range property

You want to create new sheets?
 
Upvote 0
lets move to that post no 1 is responding to tht post thast y iam trying to ask yu..i will give details there
 
Upvote 0
Assuming your now wanting to delete sheets.

Select the sheet name from the listbox and run this script.
Code:
Private Sub CommandButton2_Click()
Dim i As Long
Sheets(ListBox1.Value).Delete
ListBox1.Clear
    For i = 1 To Sheets.Count
        ListBox1.AddItem Sheets(i).Name
    Next
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top