I have a sheet that holds my inventory and has 3 colums. The colums are serialnumber, techid and date. I also have a sheet for each techid. Is there a way to delete/move a row of data if the serialnumber is entered on another sheet.
example.
I have a serialnumber added to my first sheet. I go to a techid sheet and enter that same serial number. Is there a way to copy the entire row the same serialnumber is on and copy to the current sheet? Possibly a search function where I enter a serialnumber and it finds the same thing on the main sheet and copies the rows into the current sheet.
I have a worksheet in which I have sorted the data based in date and numbering (column I and E). I would like to create 2 macros for following actions:
1- all rows with the value "TOM" in column C will have to be deleted.
2- all rows with a value of 601 or 602 in column E, will have to be moved to the bottom of the sheet after the last row with data. The rows that have been moved will have to be sorted based in date (column I) and numbering (column E).
I am trying to create a macro the looks at column A and moves the entire row to another worksheet or deletes the entire row based off of the value in each cell. Right now I have the Macro replace the downloaded values to either AG, G, GI, ICP, IMG or delete. The idea be to move all of the values with AG in column A to the AG worksheet, move G to the G worksheet, etc.. and then delete all of those with delete in the cell.
We have a client that provided us with a text file that we imported into Excel. Rather than have the entire record in one row, they have the record in 4 rows.
What I need a macro or something to do is move award 2 award 3 and award 4 into the same row and after doing this delete the other rows.
Below is an idea how this looks. 1JohnSmithstreetcitystateZIPaward 1 2JohnSmithstreetcitystateZIPaward 2 3JohnSmithstreetcitystateZIPaward 3 4JohnSmithstreetcitystateZIPaward 4 5BillJonesstreet2city2state2ZIP2award 1 6BillJonesstreet2city2state2ZIP2award 2 7BillJonesstreet2city2state2ZIP2award 3 8BillJonesstreet2city2state2ZIP2award 4
What we need for our data to work is: 1JohnSmithstreetcitystateZIPaward 1award 2award 3award 4 2BillJonesstreet2city2state2ZIP2award 1award 2award 3award 4
I have a spreadsheet with a serial number is row 1 in column A with the rest of Row 1 empty. Column A is empty in Row 2, but has the data associated with the row above in columns B through L of Row 2. Then comes 2 blank rows and the pattern repeats with a new serial number in column A of row 5 and so on. I would like to move the serial number down one row, delete the now empty first row, delete the following 2 empty rows, and then loop to do the same thing again for all 9000 rows of the spreadsheet.
I'm working in Excel 2007 and need to move data from multiple rows to a single row if the ID matches.Below is sample data I would be working with. I want to move data from columns F-U to the right of the original data in the row above it. I would also like to delete the rows that had data moved.
GIDSurnameNameEmployee Number OriginalDate of birthGranting ARE Employing ARECountry Employing ARECHCM Supplier IDVehicle Investmt. shares / Awards at termination dateMatching Shares at termination dateTermination
I've included bits of my code and some debug output. Whenever I attempt to add a worksheet, either BEFORE or AFTER I get the following ERROR MESSAGE: Method 'Add' of object 'Sheets' Failed. if I use the .add without before and after a worksheet is added. The problem is that it is always added before the active sheet. I need to replace a single sheet in the correct position of possible 10 sheets. I know the names of the sheets and which one I want to replace, but I can't get EXCEL to move sheets, add sheets by position Number or name, without getting the ERROR.
Public xlApp As Excel.Application Public xlBook As Excel.Workbook Public xlSheet As Excel.Worksheet Public xlRange As Excel.Range ..... Set xlApp = CreateObject("Excel.Application") Set xlBook = xlApp.Workbooks.Add .... xlBook.Worksheets.Add After:="Accounts Receivable" ***** ?xlsheet.Name Accounts Receivable ?xlbook.Worksheets.Count 4 ?xlbook.Worksheets(4).name Accounts Receivable
i have code like this to copy certain word in cell and place it at new sheet:
VB: Sub Foo()Dim i As Long, iMatches As Long Dim aTokens() As String: aTokens = Split("Accommodation", ",") For Each cell In Sheets("Sheet1").Range("C:C")
[Code].....
the problem is the cell source is not deleted. what line should i change in code above to move the result to new sheet and delete row source
I have a spreadsheet that I need to rearrange to improve readability. I have an example attache, which is easier to understand than describing it, but I'll try:
I want to start in a1, move to a2 copy a2 to b1 delete line 2 (the previous lrow 3 now becomes row 2 if a2 > 0.01, skip it and move & select cell a3 ... and repeat the above logic, on the next series of cells...
E.g. copy a3 to b2 delete line 3 (the previous lrow 4 now becomes row 3 if a3 > 0.01, skip it and move & select cell a4 ...and repeat the sequence again.
i would like to be able to move files from one folder to another then delete the original files. I dont think im passsing the variables to the functions corectly.
I have a dynamic range of text data that has duplicates in sheet 1, and I would like to have a list formulated without the duplicates into sheet 2 (in a range of cells that I choose). Would anyone be able to help me with this?
I have a spreadsheet (Sheet 1) listing current Work Orders with each work order occuping a seperate row; Column E lists the status of the work order, with the status being chosen from a drop down list.
I would like to have a macro that will copy the entire row and paste into (Sheet 2) when the status is changed to CLOSED, and clear the contents of the cells on Sheet 1. The aim of this being of course to have all open work orders on sheet 1 and all closed orders on sheet 2.
I've got an excel file with over 20,000 rows with Column A being having values of a "Vendor Number" while Column B has a "Vendor Name" Here is an example:
Vendor #Vendor Name 1001ABC Supply 1002Larry, Moe, Curly Inc 1003John Smith 1004Fred, Wilma, Barney LLC
I'd like it to find the rows where the Vendor Name has a comma present, and then put it in another sheet, or in another column like column C and D. If I can't get both the Vendor # and Vendor Name re-inserted someplace, that is OK. The Vendor Name is the big one.
I have 3 columns and 200 rows. The first column is for Name of product. 2nd column for number and 3rd for $value of number of products. Have 200 rows. Have done a sort and checked. 2 sets of rows are for the same product name. I want to know if it is possible to add up values in 2nd and 3rd column, 2 rows at a time , then 4th and 5th column and so forth, by some formula rather than doing it manually?
I've got a rather simple question. I need a code which would activate a cell which is located 10 rows down from the currently active cell. I found this piece of code
Sub move() ActiveCell.End(xlUp).Offset(10, 0).Activate End Sub
but somehow it does not do the job it is supposed to do.
I'm trying to adapt a macro written elsewhere on this forum for my purposes. I need to move 127 rows of data into one row. The macro written does exactly what I would like, except that it only works for 3 rows, rather than 127. How do I get this to work?Here's what I have so far:
We run reports from active directory to see user accounts that have not been logged into the network between 30 and 90 days. We have a few spreadsheets within a workbook (Investigate, Disable, Delete, No Action). All user accounts are imported into the investigate spreadsheet. What we would like to do is automatically take predecided accounts (service accounts that we do not log on to the network - only meant for services, etc) and move them from the investigate spreadsheet into the No Action spreadsheet. These accounts all start with svc. Generic accounts start with GEN and so on....
i learned how to highlight a row by placing an X in a single cell, my next question is:
Is there a way (most Likely there is) By placing "J/C" into a cell, make the entire row cut and then insert itself into my second sheet on row 2? "insert into a new row and not over existing information?"
now i have done this in the past using a Macro, select the row and then by pressing ctrl+k it would cut the row and then insert it into row 2 of the second sheet.
I've got a pretty nice Worklist setup in Excel that enables you to organize all the work you need to do in a month. However i end up with little holes in the list whenever i finish a task because what my macroes does is whenever a job is marked as done on the list it moves that job to sheet2, which contains completed jobs. I'd like to have a macro that shifts all the rows 1 down whenever a job is completed(ill just call it from the job complete macro) but it needs to jump over(skip) row 26 because that row contains some images that my macros use. Altso i would like to, if possible avoid inserting any rows or cells or hiding them because that will totally mess up my macros :p I know i know, im not dynamic enough.
I've included a sample of the worksheet so you can see what i want.
By the way, I've altso got some trouble with a public function.
I have cobbled together bits of code from around this forum to do what I need (thanks to all those I stole from!) but I'm stuck on the last bit.
I have a spreadsheet and the user types into an input box what they are looking for and the cursor moves to that position.
If the data is initially off the page when it is returned it is on the last row of the page I now see. Sometimes it may be appropriate to see data below it.
Is there anyway the found cell can always be shown about half way down the viewable page? (so that about 10 rows below are seen - obviously if the data is at the top then no movment is needed)
I tried the "ActiveWindow.SmallScroll Down:=10" but hit problems where the data was on a higher screen than the last search.
I created a macro that is supposed to copy the contents of about 500 rows, and move them all up one row. One of the things that is contained in those rows are a bunch of links to Microsoft Word documents. When I try to move the 500 rows up manually (just copying, and pasting one row higher), it works fine. The link remains entact.
However, when I use the macro I recorded, the link no longer works. It looks like it is there (the text used to represent the link is there), but when you click on it, nothing is there. Here's my code....
I have attached a sample file and would like to have the expected format as shown in the attached. Would greatly appreciate if someone could show me the faster way of reformating the data instead of doing it manually.
I have an original workbook. Also I have saved a "copy of the original Workbook". So the sheets and other headers are same. Now i want that If i delete a row in Original Workbook then the row should go out from origianl workbook and copied to "Copy of Orinal Workbook" in the same sheet from the the row is being deleted. Suppose row 7 of sheet1 is deleted, then the data of the row 7 from the original WB should go to row 2 of Copy of origianl WB (Being the first empty row. Similary if any row is deleted from sheet2 of Original Wb, the same should go to first empty row of Sheet 2 of Copy of Original WB. By this I want to keep a record of those rows which are deleted from the original Wb for future reference.
I have built a workbook that tracks patient sat for my hospital. I have been manually entering the data and the workbook is fine. The worksheets are divided by month and evereything is fine. Now things have change and now I get a data dump from a handheld device. I think I can get the data to my into workbook I just need it to move to right worksheets by month.
The data comes to me like: Date Sup Building Floor Unit Room Number 1/20/2009 08:30 Smith, John Med Center 01 Peds 120 and 10 other columns
I have tried everything from formulas to the advance auto filter. I have tried code with If - Then but pieces would move but not the whole row.
So basically I am lost. I am turning to you all to assit me in the first step.