Get Rid Of The Original Column And Just Keep The Altered One

Jan 19, 2010

I'm using the function Proper(A1) to clean up some columns that have some entries in all CAPS. It works fine. What I'd like to do now is get rid of the original column and just keep the altered one. Of course since the original is the source for the new one, when I delete it the new one goes nuts.

View 3 Replies


ADVERTISEMENT

Highlight Entire Row When Cell Selected Without Losing Original Formats And Color Of Original Row

Sep 5, 2012

The problem is when I highlight a row with some color the original color of the row is gone, so I tried this code, and again, it's removing the original format and color for the row This is the code from McGimpsey & Associates : Excel : Highlight row with background colors

Code:
PrivateSub Worksheet_SelectionChange(ByVal Target As Excel.Range)
Const cnNUMCOLS AsLong=256
Const cnHIGHLIGHTCOLOR AsLong=36'default lt. yellow
Static rOld As Range
Static nColorIndices(1To cnNUMCOLS)AsLong
Dim i AsLong
IfNot rOld IsNothingThen'Restore color indices

[code].....

How can I retain the range's historical color so that when I deselect the row it reverts properly?

View 4 Replies View Related

Formula To Find Original Entry In Column With 4 Criteria Lookup

Feb 26, 2012

I'm trying to find a formula that will find an original entry using 4 criteria original entry is cases ordered.

columns A,B,C,D will have to match then give me a result in column E to find original entry if there is one otherwise I will have to enter new row and original entry for cases ordered.

Eg.

A = section
B = description
C = size
D = region
E = cases ordered
Row 2 = fruit, apples, medium, north, 25
Row 45 = fruit, apples, medium, north,

View 3 Replies View Related

Fix Formulas In Cell So Can't Be Altered

Jan 10, 2013

I need to fix formulas in cells so that this can't be altered by others or mistakenly erase formulas.

View 2 Replies View Related

Prevent Links Being Altered

Jan 12, 2008

I have all my info in a hughe ammount of books and they are all linked b/w them (about 15 books with 5-10 sheets each), the big issue is this:

Every time someone changes anything in any book most of my links get broken or they grab the wrong info, it takes up to 5-7 hours just to find the cell/column/etc. that got changed to fix it.

I've been thinking in protecting all my books and sheets and only allow users to change certain data by unprotecting specific cells, and then create a macro that open/unprotect all books/sheets so when a major structure/formula change is needed, all files linked to that book are open (cause I belive excel updates their formulas-links when they are open).

then create another macro that protects every single sheet of all books, saves and closes them...

questions are:

1. Is this ok?, or am I just wasting my time?

2. Is there a shorter easier way to prevent this from happening (broken links)?

View 3 Replies View Related

Code To Rename Sheet. Can This Be Altered

Oct 31, 2008

I am using this piece of code (supplied by a Board member ) to rename a sheet. If the sheet already exists then this piece of code gives the option to name it as Sheetname (2).

Here it is: ...

View 9 Replies View Related

Can The Paste Special Menu Be Altered

Nov 25, 2008

if the Paste Special pop up menu can be altered?

I am sure this is not the correct terminology... I am referring to the options that are available when you select Paste Special.

I want to change it so that the only option under Paste is Values. Can this be altered via VBA or is there an option somewhere within Excel to alter this menu. Hope this makes sense to whomever is reading it...

View 9 Replies View Related

Cell Data Not To Change When Saving / Altered

Feb 7, 2014

[Code] ....

User 1 will enter date in column AA, then data needs to be copied to column CY (data in CY must not change again). I have a if formula that check if any AA and CY is the same. If any changes was done, it will give the cell a "YES" trigger to send a mail.

I think the .value is incorrect.

View 3 Replies View Related

How Color The Cell When The Existing Data Is Altered

Mar 1, 2007

How color the cell autmatically when the existing data is altered. the same needs to be done with the entired column

View 9 Replies View Related

Array Formula Works In One Portion But Not After Being Altered And Moved

Dec 18, 2013

I figured out exactly what I wanted to do and got it to work in a test excel sheet. However, when integrating it into the actual workbook I wanted, I was unable to get it to work. So, I used the same cell references I need to work in my actual workbook and pasted it all back to the test excel sheet.

So, the test excel sheet has the working formulas up at the top, and a duplicate of what I need to work in the actual cells I need them to work in. Changing the shift start time should group any persons with the same shift togethor. I'm still fairly new, but I think the only portion that could have been changed is the portion that says 1:1.. I figure that is relative to the array so it shouldn't be changed, but not sure what else to do.

Here's an array formula that works:

[Code]....

Here's the array formula to be in the correct cells that doesn't work:

[Code] ....

How to to get it to work in the different cell area.

Attached File : Shift.xlsx‎

View 3 Replies View Related

How To Create Trigger Event That Opens Email When Row Is Altered

Nov 25, 2011

I am trying to create a trigger event that opens an email when a particular row is altered. This all worked fine, until I tried to take it a step further and insert information from the spreadhseet into the email aswell.

I receive Argument not optional.

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 10 Then
Call GenerateEmail(Target.Address)
End If
End Sub

[Code]....

View 9 Replies View Related

VBA To Autofill Formula Over Column Data Calculate And Replace Original Data

Nov 14, 2008

Id like to apply a formula, any formula to an entire column if it contains data, and incorporate the original data in the calculation and then replace the original data with the result. I don't want to have to create new columns.

I'm using this to fix up database results; a common problem is dates in dot format e.g. 14.11.2008

All I have so far is an autofill formula that overwrites everything. Can someone help me with the rest? I'm using the SUBSTITUTE function to replace the dots '.' with slashes '/'

Sub Create_formula_result()

Dim Limit As Long
Dim r As range
Set r = range("A1")

r.FormulaR1C1 = _
"=IF(RC[0]"""",(SUBSTITUTE(RC[0],""."",""/"")+0) ,"""")"
Limit = ActiveSheet.UsedRange.Rows.Count
r.AutoFill Destination:=range(r, Cells(Limit, r.Column))

End Sub

View 9 Replies View Related

Go To Another Worksheet And Then Come Back To Original

Aug 21, 2014

I'm setting up a payroll for several employees in one workbook. I start from the particular employee's worksheet and then I need to go to another sheet where various information is stored and then come back to the original employee's sheet. The current macro works fine if the various information is stored on each employee's worksheet but I can't figure out how to go to another sheet and then come back to my active cell in employee sheet.

[Code] .....

View 14 Replies View Related

Protect Original Data From Changes

Apr 22, 2009

I have a tracking log, stored on a network drive, that tracks open purchase orders on about 13 different buyers. Each buyer has access to this data, and would be interested in looking at it in different ways. I have an idea for protecting my original data in this workbook, but allowing others to view and edit the data anyway they want. I thought I'd run it past the pros first, to see if they knew a better way, before I started trying to code it.

My idea was to put a macro in the workbook open event that opens an input box, "Enter password or select okay." If they enter the correct password, the macro exits, and they are in the workbook. Any changes made after entering the correct password will be made to the original data. If they enter anything OTHER than the correct password, the code would save the workbook AS another name, so now any changes made would be only made to a COPY of the original data.

This way, when I do my daily updates, I can open the file using the password, and save the file after editing. Anybody else would only get to edit a copy of my original. The other question is..., is it possible to put a macro in the workbook exit event that requires a password to overwrite the original? Otherwise, the user could edit the data in the "saved as" version, then just overwrite the original file, either accidentally or maliciously. I know they could still overwrite it by editing the macro, but I don't think they're that savvy.

View 5 Replies View Related

Percentages - Calculate Original Value

Apr 12, 2012

I have two issues:

1, How do I calculate the original value of something if it has dropped say 9.3%
Ex Stock value 5.56 down 7.4%. How do I calculate its original value.

2, I have copied some numerical data from a website, on one computer when I drop that data into an excel sheet it falls into separate cells allowing me to manipulate it, on another computer I drop it into an excel spreadsheet and all the data goes into one cell not allowing me to manipulate it.

I was wondering is there a setting on one excel spreadsheet that I am inadvertantly not using on the other.

View 4 Replies View Related

Find Original Value On Percentage

Apr 27, 2012

How do I work out the parts scanned value from a percentage. Example below.

Overall99.75%Total Stock 27194Parts scanned??

View 2 Replies View Related

How To Get The Original Location Of A Data

Dec 2, 2008

I have a range b2:g37 filled with numbers. I use max function to get the max number in this range in cell C41. For example, the number is 20400. Now I want to know where the 20400 is originally located in the spreadsheet (ie. in column B, C, D, ...? in row 2, 3, 4, ...?).

View 9 Replies View Related

Delete The Original File

Jun 21, 2006

I am writing a macro that copies a pdf from a temporary directory to a permanent directory. After the copy is complete, I want to delete the original file. Looking in Visual Basic Help, it appears that I need to create a FileSystemObject, but I have no idea what that means or how to do it. sDirectory is a string variable of the path of the file and sBatch is a string variable of the name of file. This isn't working.

Set fs = CreateObject("Scripting.FileSystemObject")
sDeleteFile = (sDirectory & sBatch)

Set a = fs.CreateTextFile(sDeleteFile, True)
a.DeleteFile.sDeleteFile

View 4 Replies View Related

Macro In Original Workbook

Mar 16, 2007

I recorded a macro in a workbook called masterschedule. The macro works only if I run it when I am using the masterschedule. Each week I open the masterschedule workbook and name it the current week, for example 3-26-07 schedule is the name of the most current schedule. I then open 7 other spreadsheets and paste information from the current schedule 3-26-07 (this week) onto 3 different sheets in all of the other spreadsheets. It works fine if I am using the masterschedule. Others have access to this workbook once it is named something else. I do not want to allow others to have access to the master workbook. Can someone help me with this? I've attached part of the macro below. I need it to work in whatever the masterschedule is renamed to.

Windows("MASTERschedule.xls").Activate

View 9 Replies View Related

Refresh Without Lossing Original Information

Jan 6, 2007

i am setting up a competency matrix and record for number of employees and when i complete the recor the information is transferred to the matrix which is in the same workbook but just on a different sheet and depending on the status of the information the cell changes colour....this is done....background info.....an employee has planned training, then they need practise then they become competent....but the problem i have is that if that employee doesnt do that task for a year then they will need a refresher but i dont want to lose the original information...so i am trying to lookup in the table and determine wwhether the task has been entered more than once and if so use the latest information if not then just use that information

View 14 Replies View Related

Cut And Paste (row On The Original Sheet Shrinked)

Sep 18, 2009

When i cut a row and paste it to another sheet, that row on the original sheet is shrinked. I don't know if my vba code has something to do with that
so just in case will put it here:

View 2 Replies View Related

Save As With New Name - But Keep Old File Intact - With Original Name

May 7, 2013

How does one do a save with a new name while keeping the original file intact - with the original file name? Would a macro be required?

View 1 Replies View Related

Hyperlinks That Move With Original Cell

Jun 26, 2013

I would like my hyperlink destination to move with the original cell (like links do) if I insert or delete a row above. The destination is on a separate sheet within the same work book.

View 3 Replies View Related

Delete Both Original And Duplicate Rows?

May 25, 2014

My worksheet that will have duplicate data inserted into it. Once inserted I need to delete the new duplicate row and the row it duplicated. The attachment is a copy of what the data looks like with the first tab showing what it will look like with inserted data and the second tab is what I want it to look like at the end. I will not need the deleted data again so it does not need to be on a new sheet, that is just for an example. The name of the tabs will also be different so I want to be able to run it on any worksheet. This is the code I am using to find and delete the duplicate but I can't get it to delete the original. I used "First, MI, Last, and DOB" because those are the ones that won't be duplicated where others will. This is a list of about 15,000 entries. There should never be an incident where there is triplicate data but I can't say for sure.

[Code] .....

Attached File : Practice.xlsx‎

View 2 Replies View Related

Conditional Formatting Cannot Keep Original Colour?

May 26, 2014

I am having problems with conditional formatting,on sheet1 ,if column "n" is yes then it is coloured red,when I search database say f124 I would like all records for f124 to appear and keep column "n" red or even better the whole row red,it seems just to locate all records with "n" =no and all orange /brown colour

View 6 Replies View Related

Vb Return To Original Sheet To Paste

May 1, 2008

If I ask in a macro to open sheet containing a fax header, copy it, then how do I tell Vb to return to the original sheet to paste. There many sheets that require this from a button click on the sheet and instead of storing the graphic in all sheets I just want 1 copy so file closes faster. I would normally just name the original sheet, but this will change with every sheet.

View 13 Replies View Related

How To Copy Sheet And Place After Original

Oct 15, 2012

I need to copy the sheet being worked on, and place it behind the original sheet.

This is going to be in a Macro enabled template that other users will be rename when they save it.

It will be activated by a button on the original worksheet other users may need to rename the worksheet before copying so I am using ActiveSheet.Copy I don't want to put the sheet after a counted sheet, because other sheets may be inserted before the one being worked on. I am not proficient at VB, I basically search for a macro that does what I need and copy it.

This is what I am working on.

Sub CopySSR()
'
' CopySSR Macro
'
'
ActiveSheet.Copy After:=Sheets(7)
End Sub

View 2 Replies View Related

Save The Tamplate In Original Place

Aug 27, 2008

I have VBA program that collect the data from database and make a report.(I will mention I open the browser to look for database )
Here is a problem:
My original file is " Daily Report.xlt(template) " .At the begin when I open this file ,the file name appear as a " Daily Report1 "...This is not big deal
When I run macros I need to keep some info on the original file.
After I done, I have following code to save as " Daily Report.xlt " .
but the actual problem is ;the code save this file on the database path that I don't want it.Actually I want to overwrite on original file to keep that file up to date.Here is code
ActiveWorkbook.SaveAs Filename:= _
"Daily Report.XLT", _
FileFormat:=xlTemplate, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
Note:I know I can add the path in front of the file name and save it in the that directory .Different customer different path I can not use fix directory.

View 9 Replies View Related

BeforeDoubleClick But Preserve Original Cell

Sep 18, 2008

Within Worksheet_BeforeDoubleClick, I have the following simple code extract that sets the appropriate autofilter to the correct value (and highlights a couple of cells for clarity) when a particular cell is double-clicked...

If Not Intersect(Target, Range("C10:AQ11")) Is Nothing Then

If Not Intersect(Target, Range("C10:D11")) Is Nothing Then

Selection.AutoFilter Field:=10, Criteria1:="C"
Range("C10:D11").Interior.ColorIndex = 36

End If

You'll be happy to hear that the event works as expected.

However I would like to add the following enhancement: after Worksheet_BeforeDoubleClick completes the "double-clicked cell" is selected, is it possible for the "original" cell to be re-selected once the event completes?

View 9 Replies View Related

How To Return To Original Sheet The Name Varies

Oct 2, 2008

I need to know how to select the sheet the user was on at the time they ran the macro. The macro has to select (because I'm not yet smart enough to avoid all the selecting...) cells on other sheets, but I want to return to the sheet they started from at the end of the macro.

Unfortunately, they create these sheets themselves, and I have no idea what they will be named, or where they will be, or what their code numbers will be. They could delete them at any time and rearrange.

Sorry if this is a really dumb question. I suspect it is, but I can't find out how to fix it, and most people are smart enough to avoid the selects so I suspect it isn't an issue for them.

View 9 Replies View Related







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