current region

  1. M

    sum of last Current Region.?

    Hi Forum, example: <tbody> a b c d e 1 2 5 6 7 8 sum (e5:e8) </tbody> suppose above is the data on sheet 1 I want to find out sum of last current region of column "E" starting from "5" to "8" since I am new to...
  2. C

    VBA Highlight sub total row within table

    Hello, I want to highlight the subtotal and total rows within a number of tables using VBA. Each table has different numbers of rows and columns. For example: In table 1, the subtotal rows are: B23:J23, B35:J35, B39:J39, B44:J44, B51:J51. The total row is B52:J52. In table 2, the subtotal...
  3. S

    VBA Current region minus header and last column

    I have code to minus header row but I also need to select current region minus header row and last column. Can anyone help. Here is my current code Selection.CurrentRegion.Select Selection.Offset(1, 0).Resize(Selection.Rows.Count - 1).Select Thanks!!
  4. B

    Vlookups in VBA using a current region

    Hi all, I am looking for a general theory as to go about using Vlookups with "CurrentRegion" arrays. This is because the lookup table is never strictly defined. That is, 1) The actual lookup table will be the current region of .. say "A37". 2) Have the col_index_number value refer to a...
  5. T

    Select multiple columns from CurrentRegion property to create a bar chart

    Hi, Could anyone teach me how to select multiple columns in CurrentRegion property so that I can create a Bar chart based on it Below are my progress so far.. however it doesn't work Public Function FourthTable() Dim Source As Workbook Dim Search As Range Dim CR As Range...
  6. E

    CurrentRegion.Rows.Count to not look at specific column (row count VBA)

    Hi, I am using RowCount = Worksheets("Input").Range("A1").CurrentRegion.Rows.Count and entering data from form as follow; ith Worksheets("Input").Range("A1") .Offset(RowCount, 0).Value = Me.Supplier.Value .Offset(RowCount, 1).Value = Me.GLCode.Value .Offset(RowCount...
  7. G

    How to set PrintArea to CurrentRegion in macro?

    Dear All, I am trying to set the print area in a macro to the current region based on cell A3. I have the following code: ActiveSheet.PageSetup.PrintArea = Range("a3").CurrentRegion I get the error: Run-time error '1004': The text you entered is not a valid reference or defined...
  8. V

    Copy current region but don't include header row

    Hello All, I would like a macro that copies the current region but doesn't include the header row. Thanks

Some videos you may like

This Week's Hot Topics

  • Sort code advice please
    Hi, I have the code below which im trying to edit but getting a little stuck. This was the original code which worked fine,columns A-F would sort...
  • SUMPRODUCT with nested If statement
    Hi everyone, Hope you're all well. I'm hoping someone will be able to point me in the right direction with a problem I'm having with a SUMPRODUCT...
  • VBA - simple sort is killing me!
    Hello all! This should be so easy, but not for me, apparently! I have a table of data that can be of varying lengths and widths. My current macro...
  • Compare Two Lists
    I have two Lists and I need to be able to Identify differences between them. List 100 comes from a workbook - the other is downloaded form the...
  • Formula that deducts points for each code I input.
    I am trying to create a formula that will have each student in my class start at 100 points and then for each code that I enter (PP for Poor...
  • Conditional formatting formula required for day of week and a value
    Hi, I have a really simple spreadsheet where column A is the date, column B is the activity total shown as a number and column C states the day of...