Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Use of integer variable for sizing of matrix

Hello,
I would like VBE to check rowcount in column a,
then make a named range, more like :
n = Worksheets("LOAD_A").Range("a" & Rows.Count).End(xlUp).Row
Worksheets("LOAD_A").[A2:A10].Name = "WGHTLDA"
only, instead of ending the named range at A10, I want it
to end at the n-th row...
Thanks for your attention and/or reply and best regards, Cor Steeghs



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default Use of integer variable for sizing of matrix

Steeghs,
n = Worksheets("LOAD_A").Range("a" & Rows.Count).End(xlUp).Row
Worksheets("LOAD_A").Range("A2:A" & n).Name = "WGHTLDA"
Cecil

"Cor Steeghs" wrote in message
...
Hello,
I would like VBE to check rowcount in column a,
then make a named range, more like :
n = Worksheets("LOAD_A").Range("a" & Rows.Count).End(xlUp).Row
Worksheets("LOAD_A").[A2:A10].Name = "WGHTLDA"
only, instead of ending the named range at A10, I want it
to end at the n-th row...
Thanks for your attention and/or reply and best regards, Cor Steeghs





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Use of integer variable for sizing of matrix

If you create a NamedRange in LOAD_A


like dnDATA=offset(a1;0;0;counta(a:a);counta(1:1))

then you can just load that instead.


keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


Cor Steeghs wrote:

Hello,
I would like VBE to check rowcount in column a,
then make a named range, more like :
n = Worksheets("LOAD_A").Range("a" & Rows.Count).End(xlUp).Row
Worksheets("LOAD_A").[A2:A10].Name = "WGHTLDA"
only, instead of ending the named range at A10, I want it
to end at the n-th row...
Thanks for your attention and/or reply and best regards, Cor Steeghs




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
How do I add an integer to an existing integer? Aaron Excel Worksheet Functions 3 December 17th 09 09:46 PM
Random Integer Don[_4_] New Users to Excel 3 September 20th 09 11:08 PM
How can I transpose nXm matrix to mXn Matrix MIHir Excel Worksheet Functions 2 August 9th 08 11:44 AM
integer integer format Excel Worksheet Functions 1 May 3rd 07 06:45 PM
positive integer? JZip Excel Discussion (Misc queries) 2 January 7th 05 06:37 PM


All times are GMT +1. The time now is 03:49 AM.

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

About Us

"It's about Microsoft Excel"