refersto

  1. P

    Changed name range according to variable

    <tbody> List No. Name 1 Pablo 2 Pepe 3 Luis 4 Juan 5 Manuel </tbody> Hello everyone! Let's say I have an small array as shown in the table and I want to create a named range for each column with all its elements. When I use the "Record Macro" tool it turn out this: Sub...
  2. O

    VBA: creating name for ListObject column range fails when it's in "A1"

    Hi, I want to create a name for the data range of a given table column, using the syntax "Table[Column_name]", so that if the table moves, expands, shrinks, is renamed, or reorder columns (...), the range referred to by the name is still correct (per opposition to use the range address syntax...
  3. Prevost

    Creating Named Ranges Using VBA - Run time error 1004

    Hi There. I am trying to create named ranges. All the range names are in the first row and below them is their respective range entries (the cell immediately below the name cell is intentionally left blank). I check the first row cells until I get to the end (where an empty cell is) to get the...
  4. E

    Variable Name Range Reference (VBA)

    Hi, I'm writing code to name ranges and the actual name varies. Im using the following expression but its not working. Below "name" is a variable. Can somebody help me with this? ActiveWorkbook.Names.Add name:="cstr(name)", RefersTo:=Selection Thanks for your help in advance. Juan
  5. Jon von der Heyden

    Names RefersToRange property - VBA RT error

    I'm baffled... Both customer and I are on Excel 32bit. I am on 64bit Win7, customer is on 32bit. Taking an excerpt of the code: Private Sub Worksheet_Change(ByVal Target As Range) Dim rngTarget As Excel.Range Dim rngCell As Excel.Range Set rngTarget = Target.Resize(1, 1)...

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