Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default Offset Range Naming

Mike thanks

As you have probably guessed, like most on this site I am new to the VBA
side and haven't quite got my head around it yet.

The version of your code that works for me is

finalrow = Range("F65536").End(xlUp).Row
Set AssignedTo = Range("B10:B" & finalrow)
AssignedTo.Select

Many Thanks
You have saved my sanity



"Mike H" wrote:

Richard,

I'm not completely certain what you want so belwo are 3 different ranges:-

Sub versive()


finalrow = Range("F65536").End(xlUp).Row
Set AssignedTo = Range("B10:F" & finalrow)


finalrow = Range("B65536").End(xlUp).Row
Set AssignedTo1 = Range("B10:B" & finalrow)
AssignedTo1.Select

finalrow = Range("B65536").End(xlUp).Row
Set AssignedTo2 = Range("B10:B" & finalrow).Offset(1, 1)' alter the offset
to suit
AssignedTo2.Select

End Sub

Mike

"Richard" wrote:

I am trying (very) to create some code that will create a range name starting
at cell B10, down to the final row with data in that column. I have a
starting point of

Finalrow = Range("F65536").End(xlUp).Row

Which uses column F to find the final row with data. I would like
assistance with the next line(s) of code to create a range called AssignedTo

Thanks in Advance for your help

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cell naming using cell references (VBA? Offset?) StephenT Excel Discussion (Misc queries) 2 June 24th 09 07:06 PM
Range naming Squeaky Excel Discussion (Misc queries) 2 December 29th 06 09:10 PM
=OFFSET(!$A$1,,,,) - global range naming Epinn Excel Worksheet Functions 3 October 15th 06 05:04 PM
Problem with Range.Cells.Offset and Range.Cells( row + offset, column) [email protected] Excel Programming 2 August 22nd 05 05:25 AM
VB Code Naming a Range (range changes each time) krazylain Excel Programming 4 May 15th 04 12:41 PM


All times are GMT +1. The time now is 05:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"