apply

  1. P

    AutoFilter for current table instead of manually defining cells

    I have a macro based on a page here Sub Gen1() Range("A4").Select Selection.CurrentRegion.Select Selection.AutoFilter ActiveSheet.Range("$A$3:$AF$117").AutoFilter Field:=3, Criteria1:="1" End Sub It works great. However, my table of data is constantly growing. I'm struggling to...
  2. I

    Apply formula to cell opens browser tree

    Hi, In cell K33 i have pasted the following code. =SUM('INCOME (1)'!G32 -'EXPENSES (1)'!K32)-MILEAGE!C32 When i then hit enter *** opposed to see the code apply itself & return a value the browser tree opens and advises me to update value income 1 Whats happening ? Thanks
  3. H

    need apply formula with variable amount of selected cells

    Hello everyone, im sorry if i dont express myself in the best way or if this question is already explained in full detail on the forums, is that i am new to VBA and excel macros (self-learning) and someone you dont know the names of stuff so when you search for it you might not find what you...
  4. A

    Macro to get specific cell data from multiple workbooks

    Hi to everyone, i have searched around to find the specific macro that i can use to solve my issue but nothing works, so i need a modified macro to help me get cell values from multiple files in one folder C:\workbooks (.xclx) the concrete cells i need to get data from are A1 E59 E60 etc. (i...
  5. C

    Conditional format one cell if range contains any text

    Hi all, I thought this would be a relatively easy conditional format to apply however i'm really struggling to find a solution. In brief I would like to apply a conditional format to highlight cell A1, if any of the cells in range, say A2:A100, contain any text. (A2:A100 should only contain...
  6. W

    Conditional summing

    I have rows of hourly power data that I need to sum to apply 2 daily charge tariffs. The time date output is in the format 01:00 Mar 08 2018. How can I apply a sumif to add consumption in 2 blocks for each day? the time periods are 07:00 to 19:00 & 19:00 to 07:00 ? The data is downloaded in a...
  7. M

    Apply background fill color to a range based on cell value

    We use alternating background fill color in columns A-G as a visual reference to distinguish between rows with certain payroll date values stored in G. Currently, we have 2 macro buttons that each apply 1 of the colors. I'd like to incorporate this functionality into the vba language, so we can...
  8. H

    Two Data Validations in a Single Cell

    Hi, I need to apply two data validations in a single cell. One is the name and other is a text 1) =validation_customers (This one is a named range) 2) ALL (This one is a simple Text) I would like to know how to apply these two in a single cell. Any help would be appreciated. Regards, Humayun
  9. J

    Converting Number to Time Format

    I have a worksheet with 747 rows of data. In column E, starting with E3, are times that have been converted to numbers (e.g., 11:00 is 11.00). I need to convert all the numbers to times but when I try TEXT, I get the wrong result. In E3 is 11.00 and when I apply =TEXT(E3,"H:MM"), I get 0:00...
  10. R

    Conditional Formatting

    Hello, I have a worksheet containing 12 columns (January - December) and 75 rows (various products). I want to conditionally format each row to highlight price evolution (ie if product X is $20000 in Jan, then $22000 in Feb, highlight red, if $19000 in Mar then highlight green). I can...
  11. H

    add Trim to VBA code within a macro

    I have several VBA macros which i hopeful of adding only a 'delete leading and trailing spaces' to. i apply the macro to different size files, with different row and column lengths. What i'm after is a code that will apply specifically a 'delete leading and trailing spaces' to what i...
  12. M

    Conditional Formatting Alternative for duplicate values?

    Hello Gentlepeople occasionally I want a deeper view into duplicate values. I want to see not only what is duplicate, yes or no, but also which duplicates tie out. I apply the conditional format for unique values to make the cells look normal and then the next rule is to apply the color scale...
  13. D

    Sumif with right and/or replace

    I am trying to use sumif =SUMIF('Sales'!$A$1:$A$15237,'Monthly'!A1,'Sales'!$D$1:$D$15237) The problem is that the data in Monthly A1 is text written as yyyy/mm which I cannot convert to a value unless I use something like RIGHT or REPLACE: =RIGHT('Sales'!A1,1)+0 or...
  14. J

    VBA Border around range if row contains any data - Auto update

    Hello, I'd like some VBA worksheet change to apply borders that applies to a range when data is entered. So, For examples data is in B12:AB700. But at present data is only up to row 125 so should only apply to this. Any ideas? Thanks.
  15. V

    Combo box change

    Private Sub ComboBox1_Change() ActiveSheet.AutoFilterMode = False ActiveSheet.Range("c3:aa3").Select Selection.AutoFilter Range("C3").AutoFilter Field:=1, Criteria1:=Sheets("sheet3").Range("d3").Value ActiveSheet.Range.Offset(0, 24).Select End Sub above code don't work as I am trying to apply a...
  16. A

    Filter Linked to a Cell Value

    Hi I wonder if anyone can help? I want to automate filtering by applying a macro after inputting a value in a cell, the value of which I would like the filter to apply. While I can automate the cell value by using Combo boxes and I can apply a macro of my choice, I do not know how to link a...
  17. I

    Bat file question

    Hi, I was reading about how good etc Bat files were. I see you can have a button which would run a Bat file. Just how good are they ? Running a Bat file would it be able to apply a hyperlink to the number in the active cell. Obviously the path to where the files would be kept would be...
  18. O

    Excel Certificate Signing

    Hi People, I have purchased a digital certificate from a company called GlobalSign to sign my VBA codes (Excel). They sent me a USB (eToken) and helped me to install the certificate on my computer. However, the rest has become a nightmare for me. The problem is that I don't know how to apply...
  19. C

    Input Cell and select all rows under it

    Hello ! So i want to apply a macro to a column, but it may change the column from user to user. So, i thought, if the user could indicate for what cell he wants to apply the macro, it would be easier. But the problem is: 1. I have the macro i want to apply. 2. I have the button 3. i Don't know...
  20. E

    Apply format to all sheets starting on the 4th sheet

    I have a template sheet called "template" that I'd like to apply to all sheets starting on the 4th. How do I loop through each sheet, apply the format and do some other functions. I posted a macro I create to do it manually. But it needs to dynamically take the value in A9, paste into the range...

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