![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: Sutton Coldfield
Posts: 1,143
|
How do I select a range of cells in VB script
using r1c1 referencing as opposed to absolute. Need to select a cell & the 7 above it and then go on to name it as a range in order to use as the source data for a chart. Thanks |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Winnipeg
Posts: 2,330
|
Quote:
Range("C14").Offset(-7, 0).Range("A1:A8").Name = "Barrie"
__________________
Barrie Davidson "You're only given a little spark of madness. You mustn't lose it." - Robin Williams |
|
|
|
|
|
|
#3 |
|
Guest
Posts: n/a
|
Sorry, but why Range("A1:A8").Name = "Barrie"
Is there? instead of Range("C14").Offset(-7, 0).Name = "Barrie" ?? |
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|