PC Review


Reply
Thread Tools Rate Thread

assigning variables

 
 
Howard
Guest
Posts: n/a
 
      26th Apr 2010
I have a problem that's new to me. I have a column, say B2 through B15.
There aare names in say the first 8 cells. Elsewhere in the code, I do
things with these names; for example I sort these names. Sometimes the
number of names will change. I may have 8 cells with names, and I will need
to change this to 7 cells with names or 9 cells with names. Because the
number of cells with names changes sometimes, and this reference is used in a
number of places in macros and VBA, I would like to assign a variable to the
number of cells, i.e. (variable 'a' = cells B2 thru B9), and then use this
variable insteal of the cell references. This way, if I have to add or
delete a name from the cells, I only have to do it in one place. Any
suggestions?
Thanks, Howard
--
Howard
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Down-Casting without Assigning ANY Variables????? nautic20 Microsoft C# .NET 2 25th Aug 2009 02:06 PM
Assigning values to variables Kiran A K Microsoft C# .NET 3 3rd Feb 2006 02:36 PM
Assigning fields to variables =?Utf-8?B?YXBz?= Microsoft Access Forms 1 8th Aug 2005 10:31 AM
Assigning variables with reflection Nigel Findlater Microsoft Dot NET Framework 1 17th Sep 2003 03:33 PM
Assigning returned SQL to Variables Chad Microsoft Access VBA Modules 0 7th Jul 2003 03:18 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:06 PM.