target.offset

  1. I

    Additional code needed for existing working code

    Evening, I am using the working code supplied below. So this code works like so. If i enter in a cell in column D the number 3 once i leave that cell it changes to the word HUTTON STORES & also then in the next cell to the right of it the number 6, this is fine BUT if i forget to enter the...
  2. M

    Stop Double Click VBA code working if no name in column C

    The following code works fine when the row that I have double clicked on contains data but it does not work if the row is blank, ie the code breaks at “Target.Offset(, -25).Resize(, 25).SpecialCells(xlCellTypeConstants).ClearContents” So what I would like to know is it possible for the code...
  3. H

    Add date to column when another cell is updated

    I want the date in column F to update when I update information in column G. This piece of VBA isn't working for me...any ideas on how to rewrite it? Case Is = 7 If Target.Offset(, -1) = "" Then Target.Offset(, -1) = Date Here is entire code on sheet. Option Compare Text...
  4. D

    Running a Macro up Pressing the Numeric Enter Key

    Th following code performs flawlessly. The code is in a sheet module as I do not wish for it to run throughout the entire workbook. The code calls for cell selection anytime a change is made to certain cells. I would like for the cell selections to be made upon pressing the numeric enter key...
  5. N

    Sheet duplication, VBA help.

    Hello :) Im trying to duplicate 2 sheets in a workbook. The idea is to have 1 Sheet that is locked and gets its values from references/links, and the other has macro/button that imports and edits info from another file. In the locked sheet there is Data validation column that must be the only...
  6. D

    Run time error 1004 - Autofill method of range class failed.

    Hi, Please can some help me? I have the following code that works fine until I try it towards the end of the range. If Not Intersect(Target, Range("D23:BM23")) Is Nothing Then If Target.Value = "Y" Then Target.Offset(, 1) = "C" Target.Offset(, 1).AutoFill Range(Target.Offset(, 1)...
  7. 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...
  8. W

    Automatically populate more than one tab

    Hi I am using the following code to automatically populate "LTC and CHC Panel Processes" tab when I complete the first tab, I also want this to automatically populate 2 other tabs, so 3 tabs in total when I complete the first 5 columns on the first tab any help gratefully received Private Sub...
  9. D

    VBA to copy cell value only into a range

    Hi, I have this following code: If Not Intersect(Target, Range("C8")) Is Nothing Then If Target.Value = 66 Then Target.Offset(, 1) = 66 Target.Offset(, 1).AutoFill Range(Target.Offset(, 1), "Z" & Target.Row) I would like to alter it so it does the following: 1. Copies anything...
  10. P

    Moving and/or deleting blank rows

    Hello everyone I have solved all of my problems thus far thanks to your help and now I have one last issue on my current problem that I didn't think about until just now. The current code cuts rows that have been completed or placed on hold from sheet 1 to sheet 2 (complete) or sheet 3 (hold)...
  11. M

    OR Condition for automatic emails based on specific cell change

    Hi all, I have a code that automatically drafts an email when a cell in range changes to "Closed Won", but would like it to also respond to "Closed Lost". Any ideas how to make it work? Code below, appreciate your suggestions. Private Sub Worksheet_Change(ByVal Target As Range) Dim...
  12. O

    Problem with Worksheet Change Macros

    Hello, I have a macro that creates a timestamp when i change the value of a cell. Until recently it was working fine but now it's as if excel doesn't start the macro when I change the cell... any pointers? Private Sub Worksheet_Change(ByVal Target As Range) Application.EnableEvents = False...
  13. P

    VBA Novice, need help breaking code into smaller pieces

    I am a true beginner with editing code, but I have a workbook that has many repeating formulas and I got to a point when building the file that it no longer works. In trying to resolve the issue, what I am assuming is that I need to break up the following code into smaller pieces...

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