Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default Purpose of EntireRow and EntireColumn

Excel allows me to do something like
Columns(liColNum).ColumnWidth = cCellWidth

but after much googling I find out to change the font I need to use
something like
Cells(1, liRowNum).EntireColumn.Font.Size = 12

Why on earth is it designed like this.
--
Mike
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Purpose of EntireRow and EntireColumn

Cells(row,column) is for refering to a single cell

Columns(index) is for refering to a whole column

EntireColumn is a bridge between.

What is illogical about it?

Illogical is using a variable like liRowNum to refer to the column <g

Columns(liRowNum).font.Size = 12

should work fine for an entire column

Cells(1, liRowNum).Font.Size = 12

should work fine for a single cell.

--
Regards,
Tom Ogilvy

"Mike NG" wrote in message
...
Excel allows me to do something like
Columns(liColNum).ColumnWidth = cCellWidth

but after much googling I find out to change the font I need to use
something like
Cells(1, liRowNum).EntireColumn.Font.Size = 12

Why on earth is it designed like this.
--
Mike



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default Purpose of EntireRow and EntireColumn

On Sat, 14 May 2005 at 22:19:03, Tom Ogilvy (Tom Ogilvy
) wrote:
Cells(row,column) is for refering to a single cell

Columns(index) is for refering to a whole column

EntireColumn is a bridge between.

What is illogical about it?

For some reason
Columns(liRowNum).font.Size = 12
wasn't working for me last night. Obviously a syntax error, but it was
appearing to me that I had to use EntireColumn rather than Columns



Illogical is using a variable like liRowNum to refer to the column <g

It was 3 am local time and my concentration going


Columns(liRowNum).font.Size = 12

should work fine for an entire column

Yes it does thanks. Now I just need to set the font to "Courier New".
Hopefully will be OK with that
--
Mike
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
Need Help with ActiveCell.EntireRow.Delete Ayo Excel Discussion (Misc queries) 8 July 19th 08 04:45 PM
EntireColumn and merged cells OkieViking Excel Programming 4 March 25th 05 11:23 PM
How to fix cell.entirerow.delete? guy Excel Programming 1 March 10th 05 02:31 AM
EntireRow.Delete Steph[_3_] Excel Programming 14 January 21st 05 10:31 PM
EntireRow.Hidden Jonas Haettner Excel Programming 1 October 24th 03 09:19 AM


All times are GMT +1. The time now is 05:32 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"