Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Range of a whole column in Cells syntax

Hello

Can someone please tell me how to access a whole column using cells().

For instance range("a1") =cells(1,1), what is the cells equivalent of
range("a:a")?

Thanks in advance.
--
Hal
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Range of a whole column in Cells syntax

Cells returns a range object and from there you can select the entire column

cells(1,1).entirecolumn

HTH

"Hal Styli" wrote:

Hello

Can someone please tell me how to access a whole column using cells().

For instance range("a1") =cells(1,1), what is the cells equivalent of
range("a:a")?

Thanks in advance.
--
Hal

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Range of a whole column in Cells syntax

Hi Hal

Cells are cells. Columns are columns. Rows are rows. Use
Columns(1)
as in
MsgBox Columns(1).Address

HTH. Best wishes Harald

"Hal Styli" skrev i melding
...
Hello

Can someone please tell me how to access a whole column using cells().

For instance range("a1") =cells(1,1), what is the cells equivalent of
range("a:a")?

Thanks in advance.
--
Hal



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
help with the syntax for using range name in a formula? BRC[_2_] Excel Discussion (Misc queries) 2 January 9th 10 06:16 PM
syntax for countif when cells fall within a numerical range Tom L Excel Worksheet Functions 5 May 31st 08 03:22 AM
Need help with creating a Range Name syntax Paul Setting up and Configuration of Excel 0 February 4th 06 08:22 PM
Need help with creating a Range Name syntax Gary''s Student Setting up and Configuration of Excel 0 February 4th 06 06:52 PM
range and cells syntax mango Excel Worksheet Functions 0 February 22nd 05 12:03 AM


All times are GMT +1. The time now is 12:49 PM.

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"