target

  1. 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...
  2. 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...
  3. Trevor3007

    speed up code?

    good morning , Private Sub Worksheet_Change(ByVal Target As Range) If Not Intersect(Target, Range("A:A")) Is Nothing Then If Target.Count > 1000 Then Exit Sub For Each c In Target If LCase(c.Offset(0, 1).Value) = LCase("Matched Assets") Then...
  4. M

    Master Tracker - Summary Sheet

    Hello all, first time posting here! How can I modify this code to always look for the next available line? when I run this it just overrides whatever is already there. Any help would be GREATLY appreciated! TIA Sub add_diagnosticdeliverable() ' ' add_diagnosticdeliverable Macro '...
  5. T

    Tick macro

    Hi Everyone, I have the macro below which I use to treat my own tick boxes in cells "a" = tick It works great except you have to click away before it will change again. I was woundering if there was a bettter way i could do this? Basickly I want a macro that gives me an "a" in the cell i click...
  6. G

    Select Previous Cell

    Hello, Have the following code which works except it highlights the entire area it posted the data after doing the macro instead of just staying where the cell originally was. How can I get it to stay on cell B2 after running this code? Private Sub Worksheet_SelectionChange(ByVal Target As...
  7. R

    salesman commission calculation

    Dear Friends, Calculating Commission: Main sheet: Cells A1 to H5 <tbody> SALESMAN SALESMAN NO BILL NO BILL DATE SOLD AMOUNT PAYMENT RCVD BALANCE DAYS JOHN 20 AF-001 02-04-2018 1000 1000 0 10 JOHN 20 AF-042 14-04-2018 2000 2000 0 20 JOHN 20 AF-050 29-04-2018 3000 2500 500 12 JOHN 20...
  8. M

    Checking and changing Zoom value without Activating workbook/sheet?

    I have a question about reading & setting the zoom level of a worksheet, but I need to explain exactly what I'm trying to do. In my workbook, I'm writing code to allow the user to import data from another workbook of the same type. (This is in case the version they have been working on becomes...
  9. J

    Hiding rows issue

    End goal: To enter a numeric value in a cell, and according to the value, it will hide all rows based on different values in a set column. Example: Enter 4 in cell B2 and it will hide all rows which contain values "AB5, AB6, AB7, AB8" in column P. What i've tried: VBA code, but i can only get...
  10. S

    Compare two columns and get info from a third?

    Hi All, I have two lists of customers. One is a list of target customers with Names in column B and Target type in column A. e.g A, B or C In the second Sheet it is a list of all customers in the country. with names in Column A I am trying to get the Target type added into Column B of the second...
  11. J

    Networkdays excluding Holidays with nested ifs?

    Hello all, I don't think my issue is as complicated as some of the ones I've seen on this site but i think my lack of understanding in the formula is causing me problems. I was instructed to gather some metrics using data from out ticketing system. This is where i am running into problems, I...
  12. I

    Numerous events sheetchane not working

    Hi, Checked a bunch of threads and am not able to get more than one intersect statement to run in my workbook. Each statement runs perfectly as seperate statements. I want an entire row to be move to a tab of the same status name when a dropdown status is chosen on any sheet and I want the...
  13. V

    Custom sort by Color in VBA worksheet code

    The code below is doing almost everything I need it to do, but I can't figure out how to sort the column by color instead of alphabetically, and allow me to set which color is on top. I've been working this problem for several hours and would sure appreciate a hand! Private Sub...
  14. F

    Show target missed for last how many months

    Hi, I have a KPI dashboard where I have data from 2016 onwards. Each KPI data is organized in each row. KPI name is placed in A column and it's target in B column followed by monthly achievements. I would like to know for how many consecutive previous months the target is not achieved for...
  15. A

    Conditional formatting based on % v’s other cell

    Hi, I hope you can help. I’m trying to conditional format a colour for A2 based on its percentage to another. For example, If A1 if the target (20%) and A2 is the result (15%) that would be 75% of the target. I would like A2’s conditional formatting formulas to calculate If less than 90%...
  16. V

    Goal Seek a Range Where the Total Variance of each Row and the Total Variance of each Column must be = 0

    Hi, I will explain.See the table below <tbody> a b c TOTAL TARGET VARIANCE R1 1 1 2 3 -1 R2 1 1 2 2 0 R3 1 1 2 1 1 TOTAL 3 1 2 6 6 0 TARGET 2 2 2 6 VARIANCE 1 -1 0 </tbody> The total target of the rows and columns will always equal each...
  17. S

    Loop through Range

    When using Worksheet_Change event, I see that if the user pastes a range of cells at once the values are input as an array. How can I loop through the values of the array, but also catch if a single cell is changed? What I have right now, this works for single cell changes but not pasted lists...
  18. S

    VBA: Pasting rows with an offset

    Hi I have two sheets that I'm trying to paste between; my source sheet and my target sheet. My VBA is working with the copy / paste however I want to offset the paste so it starts on a specific row. The source rows start in cell A1 and I want the pasting in the target sheet to start in B5...
  19. A

    Approach To Continue a Loop From an If / Then condition

    I have two worksheets, ws_source and ws_target. The basic idea of what I'm trying to do is to copy a range of data from ws_source to ws_target. Normally it would be simple enough to copy the range and paste it to the same range in ws_target. However, there may be rows of data in that...
  20. J

    Private Sub Worksheet_SelectionChange(ByVal Target As Range): by color?

    Hi Excel-experts,i find this code on internet: Private Sub Worksheet_SelectionChange(ByVal Target As Range)Is it possible to run anything like this, but then for 'Colour change in cells'? I would like my sheet to react on change of backround colour in some specific cells. Thanks in advance, Johan

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