Excel exporting of worksheets in workbooks

Chaza

New Member
Joined
Jul 5, 2011
Messages
8
Hi there

I have to work on exporting multiple excel worksheets into multiple workbooks, I don't think it is possible but I am also not too familiar with macros and how they work- I am still learning

Wondering if this is possible and if somebody could advise me on how and where to start looking to get me started

I have tried googling it but to no avail

Thanks
 
ok I'll try explaining again...hopefully this makes sense
forget about everything else mentioned before

I have an excel sheet it groups data by hotel names so each worksheet has a new record for example worksheet 1 hotel capricon, worksheet 2 rydges etc

The data comes from column "B". Column B is where hotel names are displayed in the worksheet

I don't want the worksheet labelled as worksheet 1 worksheet 2 instead I want it to be labelled as the column B data i.e Hotel Capricon, Hotel Rydges etc

Hope this clarifies things
 
Upvote 0

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Found it but if anyone finds a way I can use all contents from Column B instead of just B3 please paste it here

Code:
Sub RenameTabs()

' Renames all worksheet tabs with each worksheet's cell A1 contents.
'If cell A1 has no content, then that tab is not renamed.
For i = 1 To ActiveWorkbook.Worksheets.Count
If Worksheets(i).Range("B3").Value <> "" Then
Sheets(i).Name = Worksheets(i).Range("B3").Value
End If
Next
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,620
Messages
6,179,925
Members
452,949
Latest member
beartooth91

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