target

  1. I

    Expand on current code in use

    Hi, Supplied is the current code in use. I wish to expand the code to apply a number in the corresponding cell in column E Target cells are currently in column D "name of shop" & now wish to also add in column E "mileage to that shop" Currently if i enter 1 in the target cell i then see...
  2. V

    count total among several tables

    Hi, I have a workbook with several sheets. The example used below is very simplified Each sheet of the workbook has several tables. Each table is composed the same way but there might be more or less names in the tables per sheet. For example sheet #1 might have 4 people. Sheet #2 might have...
  3. I

    Merge two Worksheet_Change codes

    Hi, I habe these two codes. Private Sub Worksheet_Change(ByVal Target As Range)If Intersect(Target, Range("J1:M3")) Is Nothing Then Exit Sub Application.EnableEvents = False Target.Value = UCase(Target.Value) Application.EnableEvents = True End Sub Private Sub Worksheet_Change(ByVal Target As...
  4. W

    Highlight active cell or selection but restore previous fill color

    Hi guys, I found this VBA code (here: https://www.extendoffice.com/documents/excel/2129-excel-highlight-active-cell.html) <code class="vb keyword">Sub</code> <code class="vb plain">Workbook_SheetSelectionChange(</code><code class="vb keyword">ByVal</code> <code class="vb plain">Sh </code><code...
  5. K

    Code not behaving properly ?!?!?!?!

    This code seems to be erratic in its behavior. Sometimes when I change a cell the ones that are not in the range i select get cleared. When I go back and fix the entry it seems to work fine and then when I change another one if might clear something else. The concept was that if I changed a...
  6. S

    How to upload Data From Work book using Connections

    I have Work book 1,2,3,4,5.... 12 in ever work book i got Target, Achievement as Area, Finance etc. i Have work book named Report.xls here i got Sum of Area of 12 work book, it percentage to target. Now i need, whenever i download workbook 1 2 3 4 etc, the report table to be updated...
  7. Johnny Thunder

    VBA Help - Combine 2 Worksheet_Change Events - Excel 2016

    Hi group, So I have two Worksheet_Change Events written out but I realized today that you can only have one per page so here is the code, can anyone suggest a revision to combine the two into one so that I can wrap up this project...
  8. H

    VBA - If Target Not Intersect Till Last Row

    Hi All, I am using the range A4:A100 since I do not know how to change it to look from A4 till the last row. Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) If Not Intersect(Target, Range("A4:A100")) Is Nothing Then Call Macro1 End If End...
  9. S

    Decimal combinations to a target sum

    I have a target sum to achieve with some constrains such as - individual numbers have a constant divisor, variable must be of 2 decimals only and sum target for 2 out of 5 data. The grand total of the row totals must be 62,185. I tried to use solver, but got stuck. <tbody> Divisor Hours Row...
  10. 4

    Target dates

    Hi all, This could be a novice question but I was hoping one of you could help me. I have a report to run this morning from an excel file, I have a list of target dates and a list of dates when the jobs were actually completed. I basically only want to know which jobs didn't meet the target...
  11. C

    Combine two Private Sub Worksheet_Change formulas

    Good morning, I am in need of combining two Private Sub formulas together. Individually they work, and are as follows: Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address = "$F$2" Then Range("F3").Value = "" End If If Target.Address = "$F$3" Then...
  12. 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" &...
  13. SanjayGMusafir

    Use a target cell value to filter

    Dear Expert I have to filter my worksheet quite frequently on the basis of value in the last cell of a column. Please help me form a vba for that. I'm sharing the amount of work I was able to do... Thanks a lot ? Range("Visits[[#Headers],[Sr]]").Select Dim varSr As String...
  14. Q

    Numeric value as a target for [mm]:ss

    Hi I'm trying to validate a result where the target is a numeric value but the result from calculation is minutes and seconds example: A1= 240 (target minutes) A2= 195:23 (calculated value between two dates and times) A3 = if(a2<=a1,"Met","Miss") I understand the calculated value is really...
  15. J

    VBA Multiple If then statement help

    Hello, I am trying to modify this vba code that would find rows containing 20 products and cut/paste them onto another sheet. I tried to add an elseif to this code but it is not working. I am new to this so any help would be appreciated. Sub CopyYes() Dim c As Range Dim j As Integer...
  16. A

    Is there a way to copy a value in the cell next to target cell?

    Hello, I have a small script and it works for what it is designed for Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Not Intersect(Target, Range("G1:G600")) Is Nothing Then Target.Copy End If End Sub Basically it does is monitor G column and when I click...
  17. H

    cell color formatting based on values

    Hello, i'm after a way to change a cells color based on the value of that cell in relation to the value in an adjoining cell. essentially what the actual value is in relation to the target value. if the actual value cell is lower than the target value cell then i want it to turn red, and green...
  18. C

    Choose numbers from a list to give a total

    Hi. Can you give Excel a target to get to when picking from a list of numbers? e.g. if the list is 1,2,3,4,5,6,7,8,9 and the target set is 22 can you get Excel to pick a selection of numbers to give you 22 - 2,5,7 & 8 for example? Can this be further manipulated to give you the target with a...
  19. R

    VBA question

    Hi All I am using this code and the target range represents 1 layout of 72 cells. I need to include 23 more layouts. My question: should I cram it all in 1 target range or should I duplicate this code for each layout? If Not Intersect(Target...
  20. 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...

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