target.offset0

  1. C

    Make macro work with upper case and lower case

    Hello! I have the following Macro (below) in a spreadsheet I use to record work times for my employees. In column C there is a dropdown in which they are supposed to choose "ARRIVED," and then a timestamp appears in both column D and P. Similar for column E - they're supposed to select...
  2. B

    Unprotect_Run code_Protect sheet Excel VBA

    Need Help... I got runtime error 1004. Application defined or object defined error. In excel sheet, Column H,I,J is locked and protected. I want to capture the user name, date and week in column H,I,J when someone update the cell in column G. below is the code. (It's work when sheet is not...
  3. S

    If Not Intersect multiple cells

    I have a workbook that is incredibly locked down, and I'm trying to find a way to accomplish something. My current code is... 'Cost Override Values for Conditional Formatting If Sheet4.Range("AT1") = True Then 'Sheet4 - AT1 Tracks whether or not the workbook and all worksheets are...
  4. K

    Confusing Code

    Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) 'Plan Rejected If Target.Column = 12 Then ActiveSheet.Unprotect Password:="test" Target.Offset(0, -6) = 0 'Target.Offset(0, 1) = Date + Time Target = "þ" 'Range("b" & Target.Row & ":bz" &...
  5. J

    Speeding up VBA Vlookup on Worksheet Change

    Hi, i have the following which on worksheet change, looks up the value in column A and outputs the matching data from Data Sheet it uses the FIND vba function but im unsure if theres a better way to do this as it can lag on fast input: Private Sub Worksheet_Change(ByVal Target As Range) Dim...
  6. M

    MERGE TWO Worksheet_Change codes

    Hi, I am trying to merge two VBA codes; Code1: Private Sub Worksheet_Change(ByVal Target As Range) ' If Target cell is B6 then... If Target.Column = 6 Then ' Clear contents of E6 Target.Offset(0, 1).ClearContents ' Clear contents of H6 Target.Offset(0...
  7. M

    Worksheet_Change private sub Run-time Error when deleting cell values

    The code below is acting as expected... If user enters "Personal" in any cell in Column J, cells on the same row in Columns K & L auto-fill with "Personal" If user enters either "Misc." or "Other Meals" in Column K, cells on the same row in column L auto-fill with the same word HOWEVER, any...
  8. K

    Put Two Worksheet_Change in one Sheet

    Hi all, Please Help Me to Put this two Worksheet_Change To one Sheet: - First one: Private Sub Worksheet_Change(ByVal Target As Range) On Error Resume Next If Not Intersect(Target, Range("R6:R1000000")) Is Nothing Then Hyperlinks.Add anchor:=Target, Address:=Target.Value...
  9. R

    Issues with timestamp now()

    Hi All, Any help attained would be great, I am not the best using VBA so hence the query. I have a sheet where users submit their completed work and a cell calculates the % of work done. I have 4 other cells that have % thresholds from 25%/50%/75%. Is there a way for me to have a timestamp...
  10. E

    Private Sub - range for every sencond column

    Hej guys. I have this little problem. I would like to make it the same for every second row, but i cant figure out how to set the range correctly. I want to type "x" in a random cell i column D or F, and the timesample will emerge one the cell to the right. Private Sub Worksheet_Change(ByVal...
  11. R

    Datepicker Help - Need to remove time from date picker

    Hello, I'm using the following code below. However even time is displaying, can someone please help me, how do I remove time from this Thanks Private Sub Worksheet_SelectionChange(ByVal Target As Range) With Sheet1.DTPicker1 .Height = 20 .Width = 20 If Not Intersect(Target...
  12. C

    Object defined error while sheet protected but no error when not protected

    Not sure why this is happening. The following code works fine when sheet is Unprotected but gives a Run-time error '1004' Application-defined or object-defined error when the sheet is protected. All the cells involved are unlocked. Can anyone figure out the issue & provide a solution? I don't...
  13. S

    Capture Multiple Cell change

    I have code that watches three different columns for changes. It works great when only one cell changes at a time. But if I copy and paste multiple cells of data in to the columns at a single time, it doesn't work. I am pretty sure that I know why, but I can't figure out how to change it to...
  14. E

    Target Value from another sheet.

    I currently have the following code in "worksheet"/SelectionChange and it works fine. I am sure there is a simpler to way to write the code, but right now it easier to find code and modify it. Private Sub Worksheet_Change(ByVal Target As Range) If Intersect(Target, Range("I:I")) Is...
  15. K

    Excel Macro to clear cells after 4 months AND when another cell is filled in

    Hi all, I'm working with a list where I need to automatically clear data in column G-I if two criteria are true: 1) If column N has a value AND 2) If column A is older than 4 months I've been googling and reading up, and found something that I think might be on the right track, using the If...
  16. K

    VBD clearning dependent dropdowns for entire sheet

    Hi, if someone could help, I'd greatly appreciate it. I've been working on this all week, and I can't find any solutions that fit my problem. I am using the following code and it works perfectly for Row 3 (first row of data entry). This sheet will go on forever as a living document so I need...
  17. I

    Can you check my code please

    Hi, Code is supplied below. There is a couple of things ive noticed. In cell A i type say 12345 when i leave that cell i see the error message which advises photo 12345 does not exist,then yes/no box. If i click No the msgbox closes & then the photo is inserted into the cell. If i click YES the...
  18. I

    Msgbox YesNo advice

    Eventing. I have the code show below. I need some some advice please for the correct code so when Yes is selected I am taken to a specific folder. I can’t advise the path at present but stuck with the main code for when Yes is selected. Private Sub Worksheet_Change(ByVal Target As...
  19. M

    Target dynamic row but static column in VBA

    Dear VBA Experts, Excel newbie here I could really use some help with thi piece of code I´can´t get to function. I want the colour of row "x" in column "K" to change given a certain value of ro "x" in column "G" AND a maximum value in row "x" in columns H-J. Here is what i have come up with...
  20. R

    Timestamp

    I am trying to enter a timestamp in column B when data is entered in column A. If column B changes, I’d like the timestamp to change. I have the following code, but it is not working (I am new to this…). Sub Timestamp() If Target.Column = 1 And Target.Offset(0, 1).Value = "" Then...

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