Merging Data From Differnet Workbook & Sort By Colour
May 20, 2009
if it's possible to write a VBA or a code tat can merging diff workbook together. for example if i've a Folder call XXX in this folder there is
1.xls
2.xls
3.xls
4.xls
and the data all exist onli in columns. which means all the four .xls will join and be come 1 without duplication will be the best if not is ok.
Second question can i sort row by colour? for example if i've 10 rows of record and which have different colour can i write a code tat works like.
a loop to loop from the first to the last then
if .Cell.colour = Red then move to the bottom
if .Cell.colour = black then move to the top
View 9 Replies
ADVERTISEMENT
Sep 24, 2009
I have the below macro that works well
Sub Button68_Click() 'Creates delivery note
Dim stIDSelect As String
Dim stC As String
Dim C As Range
stIDSelect = InputBox("Enter RMA number you want to create a delivery note for")
If stIDSelect = vbNullString Then Exit Sub
Dim idRow As Range
Set idRow = Intersect(Range("A:A"), ActiveSheet.UsedRange).Find(stIDSelect)
If Not idRow Is Nothing Then
Dim i As Integer................
View 9 Replies
View Related
Aug 13, 2012
I have a big database, each row is having it's colour. How can I sort by colour? I mean, data with one colour comes first, then data with another colour comes after etc.
View 1 Replies
View Related
Sep 22, 2009
i have two excel sheets named APP1.xls and APP2.xls. I want to copy the data from both these files into one sheet.
I want to copy the Header row which is common for both files and i want to copy the row which has Total for that Application.
Have attached both the Input files and the outfile for your reference.
View 14 Replies
View Related
Oct 3, 2012
I would like it to loop through all the charts on the "Graphs" sheet.
It works well but gives a "Run-time error '1004'" Application-defined or object-defined error afterward that I would like to get rid off.
VB:
Sub Colour_Chart_working()
Dim rngColors As Range
Dim rngCell As Range
[Code].....
View 1 Replies
View Related
Jul 7, 2009
I currently have the following code that allows grouping when protected and also puts the user into design mode:
View 5 Replies
View Related
Oct 5, 2009
I've got a lot of wokbooks allocate in a intranet location (but i can use the explorer so see all of them) like: http://host.company.es/eng/workbooks/Forms/WebFldr.aspx
Is it possible with a VBA code to import the information in all workbooks to only one, like:
From all workbooks i just want the values in sheet2 - Cell A25 and C32
and i want that those values in the new workbook like : cell A25 goes to Cell A2 and C32 to B2. This for the first workbook analised for the second workbook it´s the same cells but it's copy to A3 and B3.
View 2 Replies
View Related
Sep 15, 2014
Is it a good idea to merge xls workbooks in to one master workbook?
I have read online that some say it is ok and nothing will happen and others say it isn't a good idea because macros and formulas will not work right once merge in to one workbook.
So I have many workbooks with 2 - 4 worksheets in them. All have formulas as well as macro's and everything is working fine just as it is. But I would like to have 1 Master workbook with all workbook/worksheets combined in to 1, so that I can stop opening so many workbooks.
View 1 Replies
View Related
Aug 21, 2009
I have a task to complete that requires me to extract worksheets from hundreds of workbooks and consolidate them into one "master" workbook. Out of the hundreds of workbooks, there is only one worksheet that I need to extract from each. The worksheet's name is "CostData". Once I have all the worksheets in one workbook, I will have to create buttons that will be able generate reports and charts based off the data in the worksheets. This will assist in determining cost comparisons, trends, and predictions. I am sure something like this has been done before, so can someone please help me out! Is there any code out there that can do this?
View 9 Replies
View Related
Apr 8, 2014
I'm trying to take a single worksheet from a workbook and merge them all into one workbook. In that master workbook I'm looking to have each of the worksheets on different tabs and the tab names as the original workbook name.
So if I have Workbook1, Workbook2, Workbook3, Workbook4 in a folder. I want to open a new spreadsheet, run this macro, select the folder with the Workbooks in, and have it take the range selected from the worksheet 'other' from each of the workbooks and generate a 'master' Spreasheet where each tab would be called Workbook1, Workbook2, Workbook3, Workbook4 and the contents would be from the 'other' tab
I found some of Ron de Bruin's code online which I've tried to customise.
Currently this takes a range from the tab specified, puts it into an array and then pastes it all into different columns on one worksheet. change this so that it creates a new worksheet for each original workbook, and names it after that workbook.
View 4 Replies
View Related
May 24, 2014
I have 30 xlsx files in a folder and I want the first sheet of all that files to be merged to a new workbook. The thing is I don't want the macro to copy paste the value in to the same sheet of the new master sheet like Ron's excel merge tool does. I want a macro to create new 30 sheets on the master file and copy the data from source files. And I want the newly added sheets to be renamed as the source file name. This works well except the sheet renaming thing.
Sub Merge2MultiSheets()
Dim wbDst As Workbook
Dim wbSrc As Workbook
[Code].....
View 1 Replies
View Related
Mar 4, 2010
I havet he following code which sorts data. If there is no data to sort I keep on getting a run time error. Could I add something to my code to prevent the run-time error, as sometime there won't be any data to sort. The code runs when I switch to the worksheet in question.
Sub SortMeetings()
Dim iCTR As Integer
Dim yCTR As Integer
Dim zCTR As Integer
zCTR = 11
For iCTR = 12 To 23
For yCTR = 1 To 10
If Len(Range("D" & iCTR).Offset(0, yCTR)) 0 Then
Range("AA" & zCTR).Value = Format(Range("D" & iCTR).Offset(0, yCTR), "HH:MM") & " " & Range("D" & iCTR).Value
zCTR = zCTR + 1
End If
Next yCTR
Next iCTR
Range("AA11:AA" & zCTR).Select
Selection.Sort Key1:=Range("AA11"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
End Sub
View 9 Replies
View Related
Jul 20, 2008
I have this ....
View 14 Replies
View Related
Apr 15, 2009
Is it possible to import the palette whenever a new book is opened by clicking the "New" command on the toolbar? I'm aware of Workbook_Open Event, however this only works on a saved workbook. And I suppose I could use a template and open that every time I need a new book, though I was hoping to avoid this solution.
The best solution for me, that I can think of, would be to replace the "New" command with code that will 1)open a new book and 2)import the colour palette from an external workbook at a specified path. Some of you may have done something similar in the past in a more logical manner, if so I’m open to alternative ideas. My main priority is the result, not necessarily how it is reached.
View 3 Replies
View Related
Dec 8, 2013
I'm looking for a way of keeping case sensitive data in a range of cells, before using Data Consolidate, which when merged afterwards, Consolidate removes the case sensitivity and combines the quantities into one.
Check out this simple table as an example >
A
B
C
D
E
F
G
H
1
TEXT
QTY
TEXT
QTY
TEXT
QTY
TEXT
QTY
2
and
3
and
2
and
10
and
5
[Code] .........
Cells A1-B7 and C1-D7 are two sets of original data, before consolidation.
Cells E1-F4 are the result of applying a Data Consolidate operation to the A1-B7 and C1-D7 ranges - note how the merged result ignores the case sensitive condition in the original ranges.
Cells G1-H7 is the post-consolidation result that I'm looking for, where the original text case is maintained.
View 3 Replies
View Related
Jul 21, 2014
How do I copy a colour scheme from another work book in Excel 2013? I could do it in 2010 but can not work out how to do it in 2013..
View 4 Replies
View Related
May 17, 2014
I have a parent spreadsheet with raw data(with errors) and a child spreadsheet without errors. I want to merge the child into parent. (:{). I am thinking of comparing multiple columns from each sheet to ensure maximum accuracy. And when those columns match up we paste the corrected column data from child sheet to parent one. I am using windows 7 and Excel 2010.
View 1 Replies
View Related
Mar 7, 2014
I am looking for a vba where by the default colour of the font for new text typed in any cell of a workbook change to green or red and the default black automatic becomes secondary. The existing text in the workbook in its existing font colour must not change i.e stays in black or red.
View 1 Replies
View Related
Aug 2, 2009
I'm compiling data to be transfered into a report program but the programe can't deal with any Excel Formulas so the data has to appear 'as is' so to speak. I have 2 columns of data (roughly 1200 rows) and I need to merge the two together but i can't have the formula in the merged cell......
View 4 Replies
View Related
Feb 10, 2009
I collect data from a number of tools for our server and switch info. I don't have a problem merging that data. My problem is trying to get that data into a working format.
-- I have a server that has dual network connections.
-- This data resides in different rows, and each has slightly different data that I need to preserve.
-- I want to merge these two rows into one pre-defined output layout on a separate sheet without loosing any of the data.
Some other things of note. Not all of the servers have duplicate entries, but still want that data on the output sheet as well.
I have attached an example of what I have to work with and what the output sheet that I'm trying to get to looks like.
View 8 Replies
View Related
Aug 1, 2014
I have an excel spreadsheet supplied by a client, let's call this the master sheet, with about 500 URLs and I've been asked to gather information from Google Analytics and place in a spreadsheet. This spreadsheet can't be changed as it goes into their CRM system.
On the master sheet, we have a list of URLS, what I need to do is go through each URL and place the number of visits to each URL on a weekly basis.
Google Analytics excel spreadsheet, will spit out a list of URLs and the page visit numbers.
My question is:
If I have both spreadsheets open, the master spreadsheet and the information from Google Analytics spreadsheet. Is there a way of having both sheets open and doing an exact match on the URLs between both spreadsheets, so we can copy and paste the information directly.
Or even a formula that says something like:
If the master sheet spread has the same URL in the Google Analytics spreadsheet, paste the relevant information into the correct cells?
As you can see, doing this manually will take a long time. I'm just looking for a productive method to save time.
View 2 Replies
View Related
Aug 22, 2008
I have a sheet with the registered members of our program (about 600 of them) with the date they registered for 2007, and I have another sheet with the same but for 2006, another sheet for 2005 etc.
How can I merge them into one sheet with columns for name, area, and 2006, 2007 etc? That way I can have one sheet giving up to date information for our members as they come and go over the years...
View 11 Replies
View Related
Jan 14, 2009
I need assistance with a formula two merge data of two cells together. For instance I have a column 'first name' and 'last name' and I want to create a column of just 'name' and concatinate the data eg: John Smith. I have roughly 175 cells to do this for.
View 5 Replies
View Related
Apr 12, 2009
I have two spreadsheets that have one set of data in each column in common.... simply put it is a number.
From the one spreadsheet, I want to pull the column that is to the right of the number in column and merge it with the other data.
I am trying to figure out a formula that will accomplish this... I have attached a file to show the two spreadsheets and my end result I would like to have.
View 13 Replies
View Related
Nov 1, 2009
I have 2 large (100k+ rows) Spreadsheets, where one has lots of information including each entries state and City and I also have another spreadsheet which has city and postcode information.
I need to get the postcodes into the main sheet that already has the cities but not the postcodes.
Is there a way to import this seeing as each sheet contains fields of similar data (ie. the city information)
Sheet 1 example fields:
Name, description, state, city
Sheet2 fields:
State, City, Postcode
View 14 Replies
View Related
Jun 27, 2014
finish up a macro. The first part of the macro that is already working copies and paste 4 cells content from each worksheet found in a closed workbook thus generating 4 rows of data for each worksheet.
How to merge those 4 rows of data into one row. I have attached an example with the original data and the results data I am looking for but here is an explanation:
The column that is a constant and that I want to match is column B (Worksheet name). The 4 rows generated per worksheet will be showing on the first row data in Column C and columns D,E,F will be blank; then the 2nd row of data will have column C blank, column D with data and column E,F, and so on for the next 2 rows. What I would like the macro to do is merge all 4 rows so that the data found in cell C,D,E,F can be found in one row.
example.xlsx
View 9 Replies
View Related
Dec 7, 2012
i have a workbook in which table is given on sheet 1 , and sheet 2 respectively , i want a macro which will copy sheet 2 data in sheet 1 below sheet 1 data .
View 4 Replies
View Related
Jan 12, 2014
I am trying to merge data from 2 tables into a master sheet. Column goes like this 1 = customer ID, 2 = allocated number, 3 = age
The first table has around 2000 entries and 2nd table has about 1000, and they both contain some overlapping entries. I wonder if there is a simple way to go around this rather than manually looking at each individual entries as I will be more tables to fit in later on.
View 9 Replies
View Related
Jun 19, 2014
How would I combine the data in 30 cells into one cell.
They all 12 digit numbers and I need them separated by a comma.
View 2 Replies
View Related
Dec 21, 2007
Hi i need to combine and merge difefrent data into groupings. EXAMPLE
1ax
1bx
1cx
2ax
2bx
2cx
It needs to end up as
1ax
2b
c
With a 2 or 3 empty lines until the next set of data
But if for example i have this:
1ax
1bx
1cx
2ax
2bx
2cz
3 c z......................
View 9 Replies
View Related