Bulk Rename Of Workbooks
Aug 28, 2008
I have folder with 427 workbooks in, named TAB001.... TAB427.
These workbooks contain listed tables out of a bespoke apllication. Each workbook only holds one worksheet (which is named TAB001, etc corrsespoonding to the workbook name).
Each worksheet holds in cell A1 the name of the table
I want to rename each workbook to whatever is in cell A1. SO TAB001.xls becomes, say, Property.xls, and so on for all 427 workbooks.
I envisage a new workbook holdinga macro to do this?
View 9 Replies
ADVERTISEMENT
Jun 19, 2008
I have about 200 excel workbooks in one folder, each with a different workbook name, and each workbook has one sheet, but that sheet has a different name in each workbook. I want to make the sheet name the same (sheet 1) in all the workbooks.
View 3 Replies
View Related
Nov 27, 2009
I have columns with sort filters, columns with tables, unformatted cells and frozen panes. When sorting one column how do I make all other columns sort simultaneously with it?
View 12 Replies
View Related
Jan 25, 2009
Is there a simple method to bulk data sort?
Explanation:
I run a workbook with worksheets in calendar months (12)
These consist of names in alphabetical order.
If a new name is added to or deleted from all the sheets (I've cracked how to do this) how can I data sort them without doing it sheet by sheet?
View 6 Replies
View Related
Jul 19, 2009
I am attaching a sample excel workbook for reference. I have a set of coded data in numbers in ColumnA, and want to replace them with actual names which are in Column G.
As explained before, I set up columns such that all template number codes are in Column F and names in Column G. The actual raw data in Column A.
However the macro is giving me wrong replacements i.e. if the coded number was 21, its replacement is name2name1 not name 21, I hope you understand what I am saying.
It will save me bucket loads of time as I have a multiple similar columns. I am a novice in macros so I am not sure how to find full numbers (21) and replace with the specific name.
Sub FindReplace()
Dim Frange As Range
Dim Fr As Range
Set Frange = Range("F1", Range("F65536").End(xlUp))
For Each Fr In Frange
Columns("A:A").Replace What:=Fr, Replacement:=Fr.Offset(0, 1), LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Next Fr
End Sub
View 7 Replies
View Related
Jan 27, 2008
i have read through all threads about permutation, and also a few others. I if I were an Excel Pro I would probably have been able to come up with a solution to my problem based on all the suggestions made, but unfortunately it is (still) all a bit too complex for me.
The problem:
I have between 2 and 5 lists of words, each list in one column:
Column A
red
green
yellow
black
blue green
pink
Column B
shirt
jumper
blouse
coat
t-shirt
skirt
Column C
for women
for men
for girls
extra large
for boys
one size fits all
Column D
View 9 Replies
View Related
Feb 16, 2010
I'm using this code to import bulk *.csv files
Sub ImportCSVFiles()
Dim sh As Worksheet, sPath As String, sName As String
Dim R As Range, fName As String
Dim sh1 As Worksheet
But I've noticed that on import run, the macro mixing the ascending order of the files.
An example:
Inside my_folder I have 3 csv files:
advertise.csv
adwords.csv
adwords keyword tool.csv
When the macro runs, it takes advertise.csv as the 1st. (Thats Ok) then adwords keyword tool.csv data
before thaking adwords.csv
(I have over 100 files to import, so you can imagine the mess I'm facing..)
View 9 Replies
View Related
Jun 25, 2013
I have a sheet which is a basically my template, it has a bunch of formulas etc on it
I need to create about 200 copies of this exact sheet and its formatting etc, is there anyway you can bulk copy a worksheet or does this need to be done individually?
View 4 Replies
View Related
Apr 22, 2013
How do I copy 100 email addresses at the top of an email and post them in an Excell spreadsheet where each email address is in one cell i.e. 100 cells?
View 2 Replies
View Related
Jun 5, 2014
I am trying to compare deductions from two different pay periods. I have the Data from check 1 & check 2 on different worksheets, in no order, and would like the data to auto populate on a third worksheet into a side-by-side comparison of the data. The problem comes when there is a deduction missed or a new deduction that only shows up on one of the two checks. I am having to manually insert lines to make my side-by-side comparison match. Is there a macro or something that can pull the data from these two soures and display them in a side-by-side comparison even if there is no match?
View 1 Replies
View Related
Apr 13, 2009
I am attempting to change a range of cells from lower case text to all upper case text.
View 4 Replies
View Related
Mar 18, 2014
What I would like to do is take all of the subcategory headings and name the cells they are in to reflect them.
e.g.
E2 has text "Diodes, Low Frequency"
I would like to rename the cell so
Diodes_Low_Frequency has text "Diodes, Low Frequency"
The code I'm using is as follows:
Code:
Dim rng As Range
For Each rng In Range(E2, AD2)
'Title of subcategory
[Code]....
For this code I'm getting the error "Method Range of object _Global failed"
If I change the code to the specific Sheet4.Range(E2.AD2) I get the error "Method Range of object _worksheet failed"
The actual code to alter the test string works fine, its the selecting the range and writing the cell names that I'm having trouble with.
View 4 Replies
View Related
Mar 15, 2013
Say I have this data in worksheet
A
B
C
D
E
14/1/2012
1
2
3
4
15/1/2012
5
6
7
8
And this in worksheet 2
=A2
=B2
=C2
=D2
=E2
=A2
=C2
=D2
=E2
=B2
=A2
=D2
=E2
=B2
=C2
Now what I want to be able to do is when I add a new row to worksheet 1, in this case row 3, then the references in worksheet 2 either to automatically (or manually do it in one simple go) increase by one and now refer to the new row. So the references now become =A3, =B3, =C3 etc.
View 1 Replies
View Related
Nov 14, 2013
Im trying to find a way to automate the download of several csv webpages into a folder on my desktop. The webpage url's use the following format:
[URL]
would it be more efficient to use some kind of batch script?
View 1 Replies
View Related
Oct 27, 2009
I have a series of files in *.ew7 format (i know its a random program)
I have some code which i can run which will simply open the relevant file and save it as xls.
The files are saved in multiple folders in format "yymm" eg: 0910 - oct 09.
inside each folder there is a ew7 file for each day in rthe format: "01ddmmyy" eg 01271009 = 27th oct 2009.
I have folders going back as far as may 2002 (in folder 0205) and i need a way to convert these all into xls format and save them in the same location.
View 13 Replies
View Related
Jun 26, 2014
I have 25 files with certain worksheets that I need to move to 25 other files.
Worksheet 1, 2, 3 and 4 in Workbook A needs to be moved to Workbook A-2014 Worksheet 1, 2, 3 and 4 in Workbook B needs to be moved to Workbook B-2014 Worksheet 1, 2, 3 and 4 in Workbook C needs to be moved to Workbook C-2014 etc....
Is there a way to do this with a macro? Preferably I would like to do this automaticly - i.e. runing the macro from a master file that
1. Opens Workbook A copies the worksheets
2. Open Workbook A-2014 paste the sheets
3. Save and close Workbook A-2014
4. Close workbook A without saving
then doing the same for Workbook B, etc.
View 5 Replies
View Related
Dec 27, 2009
Basically the main workbook opens 2 files at a time performs a calculate in the main workbook and then copies and pastes information in 3 ranges. Then closes the two open workbooks and loops and performs same operations until it hits the maximum loops. My macro is as follows and I have 3 question in capital letters.
View 3 Replies
View Related
May 15, 2014
i wanted to have a macro that will rename the IDs @ col B that is unique and duplicate.
The rename will be add if it is 1st, 2nd, 3rd and so on...
View 2 Replies
View Related
Jul 7, 2009
Is it possible to have a macro to prompt the user for a tab name, check if it exists and if so copy it and ask the user for the new name for it to be rename to?
View 8 Replies
View Related
Aug 29, 2013
I have came up with the following code , i want all the sheets renamed but except for sheet("PRODUCT")
i tried with if not and somehow it did not work.
Code:
Sub ChangeWorkSheetName()
Dim WS As Worksheet
i = 1
On Error Resume Next
For Each WS In Worksheets
WS.Name = "CUSTOMER" & i
i = i + 1
Next
End Sub
View 4 Replies
View Related
Jan 10, 2014
How can I convert this code so that it steps through each sheet in the workbook and renames them to the Value that is in its Cell "M1"?
Sub RenameTab()
ActiveSheet.name = Range("M1").value
End Sub
View 1 Replies
View Related
Jun 20, 2008
How would I code the Active Sheet to be renamed Sheet1?
View 9 Replies
View Related
May 13, 2007
I renamed a sheet and for some odd reason excel added .xls] before the name of the sheet. So the name was now .xls]Sheet 1. I tried to rename the sheet again to get rig of the .xls], but the program didn't allow it and said that I "entered an invalid name". Now when I'm trying to make links to cells on this sheet, excel says that my "formula contains ans ivalid external reference to a worksheet". The worksheet is now unusable and copying the sheet and updating all the links on other worksheets is a lot of work.
View 6 Replies
View Related
Feb 9, 2010
I have 4 employees by 52 weeks tabs in a workbook. The first 4 tabs are as follows:
Pat 010810
Dan 010810
Max 010810
Ann 010810
I would like some method (maybe VBA?) that I can rename the subsequent tabs, having the same names but the date with a seven day increment; i.e.the next tab would show Ann 011510, etc.
I don't know how to code, but can get to the VBA page and copy really well.
View 7 Replies
View Related
Jul 8, 2013
I just copied and modify this code; What I want is to add sumting on the file name, without changing, file path, original file name and file extension
Say : I get the file
D: DocsMemo.docx
I can paste it to the fnpath with a changed filename
C: \_Temp Memo_BPMC-0001.docx
Heres the code
[Code] .....
View 3 Replies
View Related
Apr 2, 2014
I want to open an existing workbook, make a copy, rename the copy only and have it remain open and retain the original workbook unchanged and not open.
View 3 Replies
View Related
Aug 19, 2014
I would like to open 3 excel files (with identical names) from 3 different mapped drives eg M,N and O. How can I use Excel VBA to rename these 3 files based on their original locations and save them in a folder in the C drive eg M_Filename,N_Filename and O_Filename.
View 3 Replies
View Related
Dec 11, 2008
I have what should be a simple question. I have a button in a form that needs to duplicate a sheet and rename it. It will duplicate but i am having problems with the renaming. The name of the sheet is coming from a userform text box. Here is the code i am trying.
View 2 Replies
View Related
Sep 10, 2009
From my research on trying to apply this function, I have peiced together several codes and am unable to get my end result. I want to add a worksheet and rename it with text formula on my main "Macro" sheet from cell D1. The name in cell D1 is a date that changes based on a formula. I can get the macro to add the worksheet but then it stops at renaming it:
Sub NewTab()
'
' NewTab Macro
' Macro recorded 9/10/2009 by andrea_1
'
'
Dim wsNew As Worksheet
Set wsNew = ThisWorkbook.Worksheets.Add
ActiveSheet.Select
ActiveSheet.Name = Worksheets(Macro).Range("D1").Value
End Sub
View 2 Replies
View Related
Jan 21, 2010
I have a workbook that pulls in data from other sources and contains 15 linked sheets. The data changes when different criteria is selected in the first sheet. The first 2 sheets are summary sheets and the tabs are named correctly.
I would like to be able to rename the remaining 13 tabs using labels found in the cells in the first sheet. These tabs should update or change when the first sheet is manually recalculated (F9).
I have used ActiveSheet.Name=Range("A1") but it doesn't apply in this case. Is there a macro that could run with something like Sheet1.Name=Range("A1"), Sheet2.Name=Range("A2"), Sheet3.Name=Range("A3"), etc.... or maybe something in each sheet that would change the name of the tab to a specific name off sheet 1 when the whole workbook is recalculated?
View 10 Replies
View Related