.offset0

  1. S

    problems with audit trail

    Hi all I have the code below which should record changes to cells in a worksheet - recording cell, old value, new value, time, date and domain name of person that made changes. It works well, except: 1. the old value is never recorded and just shows a blank. how do I record the old value...
  2. P

    Passing the HorizontalAlignment property to a Subroutine

    The Font Size and the HorizontalAlignment of Text in various rows will have to be different. So, when the programme moves from one Row to the other I am trying to pass to a Subroutine the Font Size whether 10 or 11 and the Alignment property whether xlCenter or xlLeft. I select a range and I...
  3. MFish

    Worksheet change VBA Code not working

    Code: Private Sub Worksheet_Change(ByVal Target As Range) If Intersect(Target, Range("D2:D10000")) Is Nothing Then Exit Sub Application.EnableEvents = False With Target .Offset(0, -2).Value = Date .Offset(0, -1).Value = time .Offset(0, -3).Value = Environ("Username") End With...
  4. S

    Audit VBA - can't get the old value to appear

    hi using the code below to record changes to cells in a worksheet called "Master List"; it works almost perfectly except it doesn't put the old cell value into the tracker, but instead "Empty Cell". Most of the changes to be tracked are changing text / numbers to text / numbers but it always...
  5. M

    Prevent over writing cell

    Hi I have VB that updated cells with username when the user updates a row. However it seems that it is updatng each row with the user Example: user.one will upated a row and cell is updated with that username, user.two then updates the second row, but this time it will update first and second...
  6. M

    Excel ticking "Locked" for cells when I dont want it to

    Hi I have a spreadsheet for recording issues, when complete we update cell in column "M", VB will then set each cell for the row to locked. this then prevents the row from being edited, the rest remain editable. however i am now finding that cells that start off with Locked un-ticked are now...
  7. B

    Workbook change tracking not working as expected.

    Good morning, I am trying to track changes to a workbook in a worksheet named Audit I found a macro on this site and gave it a try but no changes are showing up in the audit worksheet. I inserted the macro in the workbook. I made multiple changes to the Quick Quote sheet and saved the...
  8. K

    track changes on protected sheet using VBA

    Hi There, I'm still quite new to VBA, so hoping someone could give me some advice. I have an excelsheet in which only certain columns are allowed to be modified by other users, thus I've protected these particular columns. However, I also want to be able to track any changes and I thought i'd...
  9. K

    track changes on protected sheet using VBA

    Hi There, I'm still quite new to VBA, so hoping someone could give me some advice. I have an excelsheet in which only certain columns are allowed to be modified by other users, thus I've protected these particular columns. However, I also want to be able to track any changes and I thought i'd...
  10. B

    Excel for Mac Runtime Error 1004

    Hi All, This piece of code is throwing an error 1004 when run on an Excel for Mac spreadsheet on the second last line where it pastes the copied cell formula. This works perfectly on Windows PC. Any help appreciated. thanks Ryan Dim Max, c, StartCol as Integer Dim rng as Range c =...
  11. N

    Protect / un protect macro options

    Hi, I use the following code in a spreadsheet. Within the code it unprotected the worksheet and then protects it once it has run the macro. I need to, when protecting again, ensure that the use of auto filter is permissible. For some reason, each time it protects, my auto filters will not...
  12. M

    Help in updating 2nd work sheet form user form

    Hello All I have a user form that I use to update memberships But what I need to do is update the member date on a 2nd work sheet it would have to find the members name from the cboMem and use the dtpMdate the second sheet is called MemNum and has a name range called listMemberNum Here...
  13. N

    Issue with code for tracking work

    Hi, I am using this code to track work changes on a sheet. Everything works perfectly apart from the tracking of the old value. I see what the value has changed too, but It will not show what the value has changed from (old value). Option Explicit Dim vOldVal 'Must be at top of module...
  14. C

    Looking to speed up and shorten my VBA Vlookup/find code

    Hi all, I'm new to VBA and found some codes online which I tried to combine together.I'm trying to move managers who leave the business from "manager 1" CH:CP to "leavers" page CH:CP, by doing a Vlookup to convert their details into variable and paste them to next blanks in leavers page. I...
  15. C

    VBA Script

    I have a script that I have written. The script works well, but only on Sheet 1. If I enter data into sheets 2-5, the end result of the vba still goes to Sheet 1. I'd like to make the script work individually on each sheet. Thanks in advance. Code Below. Private Sub Worksheet_Change(ByVal...
  16. E

    ComboBox List dependent on a list

    Hi there, please help me understand why my cboLnName appears empty in the userform and help me fix it? :( Private Sub cboLnName_AfterUpdate()On Error Resume Next Dim ws As Worksheet Dim cPart As Range Set ws = Worksheets("LookupData") Me.txtAllJobs.Value = "" Me.txtAllJobs.RowSource = ""...
  17. N

    Also capture username within this VBA action

    Hi, I am using VBA code to track changes to an excel spreadsheet, currently recording Cell changed ref Old Value New Value Time of change Date of Change I need to add Who changed it (Windows username). The code I need to add to is below, would be great if someone could assist with this...
  18. N

    track changes to worksheet with VBA

    Has anyone ever tried to track changes with VBA. I am currently tring this solution: http://sourcedaddy.com/ms-excel/track-changes-particular-worksheet.html The code it states to use is this: I am getting red lines for some reason as in the code, I also get an error when i try it out...
  19. C

    DIR$ function unreliable?

    I am trying to get a macro to hyperlink to a folder while checking to see if a folder exists for the hyperlinked item. My problem is that the first DIR$ call is unreliable. Sometimes it works as written while other times it fails with a Runtime error '76' Path not found. Why would it work...
  20. M

    Edit and Apply Changes to Existing Field

    Dear Excel Users - I'm busy to learn how to do a cabin booking system. Just to explain how the worksheet works - I have two sheets - Sheet 2 shows a calendar where cabins can be booked . In sheet 4 it shows the variable date range and will only show the data that is between the dates...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top