Macro - Revision For One Sheet Not All Sheets

May 26, 2007

I have the following macro which picks up a cell's value and then searches and replaces it throughout the whole workbook:

Dim sh As Worksheet, r As Range, c As Range, s, arr, x As Long
arr = Sheets("Exclusives").[b2:b250]
s = Array("Exclusive", "", "", "", "", "", "", "", "")
For Each sh In Sheets
If LCase(sh.Name) Like "*family*" Then
sh.Activate
For Each r In [b8].Resize([b65536].End(xlUp).Row, 1)
For x = 1 To 249
If r.Text = arr(x, 1) Then
r.Resize(1, 9) = s
Exit For
End If
Next
Next
End If
Next
I would like this to change so that it only identifies and changes the value on one worksheet - titled 'total'.

View 9 Replies


ADVERTISEMENT

Revision Cloud Macro

Jul 21, 2005

For thos of you who use Excel as a drawing tool (painful I know), have you ever created a macro, vba script, anything to draw a revision cloud around certain areas? I know there is an autoshape cloud but thats worthless for this type of application.

I have searched a little and haven't found anything. . . . I figured I would ask here b/c collectively y'all know everything

View 9 Replies View Related

Updated The File Name Changes To Reflect The Revision

Mar 17, 2009

I have a spreadsheet that references another spreadsheet, however the other spreadsheet will get updated from time to time. When it's updated the file name changes to reflect the revision:

"C:Projects9-022_Tunisia1_Design9-022-R00-Inst_Database.xls"

When this file is revised the "...R001..." will increment with each revision but the rest of the file will stay the same.

Sometimes I have to reference a file in another directory:
"C:Projects9-030_Brazil1 Design9-030-R00-Inst_Database.xls"

I was planning on placing information in the following cells of this spreadsheet ("C:Projects9-022_Tunisia1_Design9-022-R001-Cause_&_Effects.xls):

Cell A1 - Project Number (i.e. 09-022, or 09-030)
Cell A2 - Project Name (i.e. Tunisia, or Brazil)
Cell A3 - File Rev Number (i.e. 1, 2, 3, etc.)

I was thinking my "INDIRECT.EXE" would look something like this:
=INDIRECT.EXE("'C:Projects"&A1&"1_Design["&A1&"_"&A2&"-R00"&A3&"-Cause_&_Effects.XLS]Index'!Q5")

The value on the spreadsheet tab "Index" that I'm referencing in cell Q5, is "FG-5901" but all I'm getting in the spreadsheet were this formula resides, is an error "#NAME?"

Part of my problem is that I don't fully understand the function of the "&" symbol in the formula. Sometimes I've seen it placed on both sides of a cell reference (i.e. &A1&), and other time only at the being (i.e. &A1).

View 6 Replies View Related

Shared Workbook: Revision History

Aug 18, 2009

Our main spreadsheet in the office is a shared filed which is accessed by 3 pc's.
We have been using this set-up for nearly 3 years and no problems until this last week. Now, over the past week, this message pops up when we try to save the file on the PC's not hosting the file.

"Excel was unable to save the workbook because there was a problem reading or applying part of the revision history. You can unshare the work book or save to a non shared workbook format to fix the problem"

I have shared/unshared/reshared and shared again but a week later, I still keep getting this message popping up. Any ideas?

One thing I have noticed is that we have set it in the advanced tab of the share workbook options not to keep revision history, but sometimes it also shows 'keep history for 30 days'.

View 9 Replies View Related

Macro To Take Action On All Sheets That Come After Specified Sheet?

May 13, 2014

I have an excel Workbook made up of sheets that are named after months ("May 2014", "Jun 2014" etc). I want to pull data from each sheet that comes after a user specified date.

View 3 Replies View Related

Macro To Copy Two Sheets To New Sheet?

Aug 10, 2014

Sheet1: 10 columns (can have any number of rows, let's say 5,000 rows)
Sheet2: 10 columns (can also have random number of rows, let's say 10,000)

Both sheets have the same data but the column headers may be slightly different due to the source being different systems

Here's what I need: I need a macro to copy the data (without the headers) from Sheet1 underneath the the last row of Sheet2. For example beginning on the 10,001 row of Sheet 2. OR, if it's easier to copy the data in both sheets to a new sheet. The new sheet will already have the headers so begin pasting on the second row

View 6 Replies View Related

Removing Duplicates Based On Latest Revision?

Aug 20, 2012

I am importing some data from a source which every time I just want to have latest revision of documents and I want it to be dynamic so that every time I import data the deletion would be automatic the data I import is something like this

DOC NO.
DOC DEScription
status

[Code]....

and as you see I have duplicate documents with different revisions and I want to have the latest last revision only.

View 8 Replies View Related

Macro For Deleting First Three Rows In All Sheets Except 1st Sheet

Apr 1, 2014

I have a excel file with more than 10 sheets and every sheet has a title on its first three rows.

I want to delete first three rows in all sheets except parent sheet .

View 4 Replies View Related

Macro - Copy Value Only From Multiple Sheets Into One Sheet

Feb 11, 2010

This Macro works fine to copy data from multiple sheets into one master sheet, but it is also copying the formula. How can I change this Macro so that it is copying and pasting VALUE only?

Sub Combine()
Dim J As Integer
On Error Resume Next
' work through sheets
For J = 4 To Sheets.Count ' from sheet 3 to last sheet
Sheets(J).Activate ' make the sheet active
Range("A10").Select
Selection.CurrentRegion.Select ' select all cells in this sheets
' select all lines except title
Selection.Offset(1, 0).Resize(Selection.Rows.Count - 1).Select
' copy cells selected in the new sheet on last line
Selection.Copy Destination:=Sheets("Combined").Range("A65536").End(xlUp)(2)
Next
End Sub

View 4 Replies View Related

Macro To Consolidate 20 Workbook Sheets Into One Sheet

May 12, 2011

I have 20 excel files each having more that 1000 records, the format and header for all the files are same.

I need to consolidate all these 20 different files into one excel sheet, having only one header row at the top. Since I need to perform this step frequently, I am planning to automate it.

View 9 Replies View Related

Macro To Work On 1 Sheet Not All Sheets In Workbook

May 24, 2006

Well this excel workbook has lots of sheets each for a specific region eg, Europe, austin etc and also sheets which have relevant data that gets used in the formula.

Now, say for eg lets considered the sheet called austin.

it does the calculations on the headcount needed for call center.
so the columns refer to a formula called gets() which then calls the erlanc function.

Now the problem here is this gets() function takes a value called calc

and this calc just a cell in one of the sheets called table. Now if I change the headcount value in the austin sheet nothing happens. Then I need to change the value of calc cell say make it to 5 or 6 and hit enter. It starts calulating the values to forecast thye headcount, but it does so for all the sheets . so it is taking a lot of time.

how to get make it run only for one sheet.

View 9 Replies View Related

Filtering Highest Revision Number For Individual Products

Apr 16, 2013

What's the easiest way of filtering a list of products to only show the highest revision for each product, preferably without using macros or VBA?

E.g. I only want to show the asterisked rows in the table below:

Product Rev
AAA 1
AAA 2
AAA 3*
BBB 5*
CCC 3
CCC 6*
DDD 1
DDD 4
DDD 7*

Potentially, other (random) data could also exist in the same row.

The example above is sorted alphanumerically but a solution for an unsorted table would be even more useful.

View 7 Replies View Related

Simplified Macro That Copies Col A And B From 12 Sheets To Complete Sheet

May 13, 2014

I have this code that works where Column A and B from 12 sheets are copied to a "Complete" sheet where it is saved as a CSV file for import.

I'm fairly new at this and know this code could be simplified to loop through the 12 sheets instead of copying the code 12x!!

I've copied the code for the 1st 2 sheets:

Sheets("Sheet1").Select
For i = 3 To Cells(Rows.Count, 1).End(xlUp).Row
OutSH.Cells(1, outcol).Value = Cells(i, 1).Value
OutSH.Cells(2, outcol).Value = Cells(i, 2).Value
OutSH.Cells(2, outcol + 1).Value = Cells(i, 3).Value
outcol = outcol + 1

[Code] ......

View 1 Replies View Related

Macro To Copy Data From All Of Sheets In One Workbook Over To One Sheet In Another?

Mar 10, 2014

computer just doesn't have the horsepower to run all of the sheets and the formulas and put them together on one sheet in the same workbook.

I was wondering if it would be possible to take the identically arranged sheets from one book and paste the VALUES over to One page in another book.

I'm guessing you'd need to know the directory of the workbook and the title?

Below is the macro i run to compile in to one page in same workbook: (Summary3 is an arbitrary name for the new page, HEADERS is the name of the page that holds the headers for all of the categories, 2014 URL, RAP and DB_Template are the three sheets that I don't want to copy in to this new page)

The headers are in each sheet from B2:DL2 and the data would be from B3:DL75.

I am looking for an update to the following macro that would paste all of the VALUES from each of these sheets in to a new workbook on a single page.

Sub CopyAll()
Dim ws As Worksheet
Sheets.Add.Name = "Summary3"
Sheets("Summary3").rows(1).value = Sheets("Headers").rows(1).value
For Each ws In ActiveWorkbook.Worksheets
ws.Activate
If ws.Name <> "2014 URL" And ws.Name <> "RAP" And ws.Name <> "DB_Template" And ws.Name <> "Summary" Then
Range("B2:DL75").Copy Sheets("Summary3").Range("B" & Rows.count).End(3)(2)
End If
Next ws
End Sub

View 2 Replies View Related

Reduce Macro Perform Array Of Sheet (not All Sheets)

Feb 3, 2010

How can I make this macro easier (smaller)? The same action is performed on an array of sheets (not all sheets).

View 4 Replies View Related

Macro To Copy An Area Of One Sheet To All Sheets Within Workbook

Feb 3, 2010

I want to create a macro that will allow me to copy a specific area or dataset of one sheet to all of the other sheets within a workbook. For example, on my first sheet, i want to copy A1:C3. I want that information to show up on all the other sheets in A1:C3.

View 2 Replies View Related

Running Macro Based On Sheet Name (Multiple Sheets)

Dec 20, 2012

I have multiple sheets in one file. I need a code (that will be ran at random) to look at all the sheet names and the ones that end in the word "Archive" to move to another file.

View 5 Replies View Related

Macro For Getting Colored Cells In Separate Sheets In To One Consolidated Sheet?

Dec 2, 2013

Macro for getting colored cells in specific range in a separate sheets in to one consolidated sheet.

Have attached an excel as a reference.. marked yellow and red.

View 9 Replies View Related

Macro To Copy Specific Data From One Sheet And Paste Into Two Sheets

Mar 24, 2009

There's one sheet that has a list of customers (this is updated very frequently). These customers are either ‘New’ or ‘Existing (as listed in a corresponding column) - would it be possible to have a macro that, when run, will place a copy of existing customers into a second worksheet (“view list – new”), and a copy of new customers into a third worksheet (“view list – existing”), with the main worksheet still listing both existing and new customers.

As the main sheet that lists all customers is updated very frequently (with customers being added and removed throughout the day), would it be possible to clear all contents of the other two sheets that each list of 'existing' and 'new' customers will be copied into, before the two lists are copied into each of the two sheets (just to ensure there isn’t any data in there from the previous time each list was copied in).

I’ve given this a go via the ‘record macro’ function - some users of this WB use excel 2000, and others use excel 2007, but it only seems to work on excel 2007 (which is what it was recorded on)…

View 3 Replies View Related

Creating A Macro To Compare 2 Sheets In A Workbook And Print The Differences To A 3rd Sheet

Sep 30, 2009

Creating a macro to compare 2 sheets in a workbook and print the differences to a 3rd sheet.

Each sheet will have the same number of fields, 5 columns with the header in the first row.

All values in the cells are integer except for the last field which will be a character.

The key is the value in the 2nd column. If it's not in the other sheet, then it's a new record. If it's a new record then highlight it a color depending on what sheet contains the new record. Now if the key is the same in both sheets, then check the other columns to see what's different. If there is a difference, print the record for both sheets in the third sheet and highlight the differences. I attached a sample of what I want.

View 14 Replies View Related

Excel Macro To Copy Data From One Sheet To Multiple Sheets Without Duplications

Feb 16, 2012

We have a company and need to automating workflow.

The Master sheet contains incoming mail details by customer. Each employee is assigned a set number of customers to respond to. We want the information on the Master sheet to filter to a specific employee assigned sheet. On the employee assigned sheet, once filtered, they are to provide updates in column E

Date
Reference no.
Name
Employee ID
16-Feb-12
S/S/1

[Code] ........

We need a macro that can filter customers' details to the specific employee assigned sheet based on the employee ID in the master sheet. For example, all customers assigned to DW (i.e with the 'DW' employee ID) filters into a sheet called 'DW'. Please note that the Master sheet is a continuous log updated daily. This macro must not duplicate information previously filtered once the employee enters a status update in column E.

View 2 Replies View Related

Creating Macro To Copy Time Sheets Data Of Employees Into Master Sheet

Apr 15, 2013

I need to create a macro to copy the data from time sheets of different employees into the Master sheet. ie., each employee's time sheet details in to a separate sheet. If any employee fails to provide his/her time sheet details. a mail must be sent to the respective employees regarding the Time sheet submission. I am providing the sample data of my files too.

Intentionally TS_Employee5.xlsx timesheet isn't provided. In which case, I have to send a mail to the respective employee, in order to remind him about the time sheet.

View 12 Replies View Related

Excel Macro To Copy Cell From Multiple Sheets Into Single Sheet Based On A Value

Aug 16, 2013

I have an excel document with multiple excel sheets(sheet1, sheet2...etc), now every sheet contains a cell "total".

Now I want to copy the row containing "total" from all the sheets into another sheet called "report".

View 9 Replies View Related

Worksheet 'Change' Event: Show Which Rows Of Data Have Been Changed By Incrementing A Revision Attribute

May 13, 2009

I want to show which rows of data have been changed by incrementing a revision attribute. For example, if a user changes the contents of a cell anywhere between rows 2 and 13 and col 1 and 9 then the revision attribute in col 10 would increment from 1 to 2 (for the affected row). If another change affects the same row then the rev attribute would increment to 3, and so forth. I don't care which cell was changed only that something on that row was touched.

I thought the CHANGE event was a dead ringer for triggering some VBA code to control this but, since part of the change event code writes the revision value, this triggers another CHANGE event causing an endless loop until something (??) kicks in and stops it after 220 iterations. Is there a way to inhibit the change event just prior to updating the cell containing the version attribute?

Rather than post the code here I have submitted the workbook that includes the whole setup and code. I should also mention I looked at all the other worksheet events and I do not see any "triggers" that would fire each time a cell content is changed. As a side note, is there a way to step into the code of a change event? F8 does nothing.

View 3 Replies View Related

Sorting Sheet That References Data From Other Sheets (Google Sheets)

Jan 25, 2014

[URL] ....

I want to sort the Inventory Checklist sheet based on Column D but it gives me nothing but references errors.

View 1 Replies View Related

Macro To Print Sheets With Value In Cell A1 But Print Dynamic Ranges On Certain Sheet

Sep 24, 2013

I've found some code which works to print certain pages with value in cell A1 but I need to print dynamic ranges on some of the sheets as they will have filters on so the rows ranges will be different each time.

So far this is what I have but the dynamic range part is not working:

VB:
Sub Print_All_Worksheets_With_Value_In_A1()
Dim Sh As Worksheet
Dim Arr() As String
Dim N As Integer

[Code] ....

View 3 Replies View Related

Merging Sheets / Copying Cells From X Sheets Into 1 Sheet

Feb 22, 2013

I have merged 336 individual spreadsheets into one book, now I want to merge the data in all the sheets into 1 individual sheet. All the sheets have the same size and range, I need to copy a constant range(row,column) from all the different sheets into one.

What VBA functions to use???

View 4 Replies View Related

Copy From Multiple Sheets (26), PASTE To 1 Sheet From 26 Sheets

Dec 26, 2009

I have a workbook with 26 sheets, labelled A to Z. Column A in all the sheets have names from rows A6:A35.

I need a macro or a code to extract all the names from each of the 26 sheets and paste it to a new sheet 'Names' under column A, such that names starting with 'B' paste under all the names 'A' and so forth till 'Z'.

View 9 Replies View Related

Copying 2 Columns In One Sheet To All Other Sheets (except 2 Sheets)

May 25, 2014

i wanna copy C and D columns in Sheet1 and insert these 2 columns (copy + insert copy cells function, not copy + paste) to all other sheets except Infopage sheet

View 14 Replies View Related

Combine To Sheets In One Sheets Using Macro

Sep 9, 2009

Combine to sheets in one sheets using macro ...

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved