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

Watch MrExcel Video

This Week's Hot Topics

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
Top