#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 361
Default AutoFill

I am trying to make a list like this:

A
B
C
..
..
Z
AA
AB

etc.

A Column List of all the Col's in a worksheet.

Is this possible ?

Thank you in advance.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 461
Default AutoFill

Alright, this was pretty fun... try this.

Go to

Tools-- Macro --- Visual Basic Editor

The in the Visual Basic Editor go to

Insert --- Module

Then Copy and paste this exactly as is, in to the module

Sub cols()
For x = 1 To 26

ActiveCell.Formula = "=LEFT(ADDRESS(1," & x & ",2),1)"
ActiveCell.Offset(1, 0).Activate

Next x

For x = 27 To Columns.Count
ActiveCell.Formula = "=LEFT(ADDRESS(1," & x & ",2),2)"
ActiveCell.Offset(1, 0).Activate
Next x

End Sub

Then select the cell where you want the columns letters to start. So the
cell where you want A. Then go to

Tools--- Macro--- Macros

And then click on the macro colled "cols" and then press play and watch the
magic!

"carl" wrote:

I am trying to make a list like this:

A
B
C
.
.
Z
AA
AB

etc.

A Column List of all the Col's in a worksheet.

Is this possible ?

Thank you in advance.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default AutoFill

Bit of a mouthful but this works
=LEFT(ADDRESS(ROW(A1),ROW(),2),FIND("$",ADDRESS(RO W(A1),ROW(),2))-1)
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"carl" wrote in message
...
I am trying to make a list like this:

A
B
C
.
.
Z
AA
AB

etc.

A Column List of all the Col's in a worksheet.

Is this possible ?

Thank you in advance.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default AutoFill

Try this:

=SUBSTITUTE(ADDRESS(1,ROWS($1:1),4),1,"")

Copy down as needed

Biff

"carl" wrote in message
...
I am trying to make a list like this:

A
B
C
.
.
Z
AA
AB

etc.

A Column List of all the Col's in a worksheet.

Is this possible ?

Thank you in advance.



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
Autofill Greg Excel Discussion (Misc queries) 2 November 2nd 06 01:03 AM
autofill grambo Excel Discussion (Misc queries) 1 October 9th 06 02:55 AM
autofill Jimmy Excel Discussion (Misc queries) 2 May 31st 06 07:35 PM
Autofill until uberathlete Excel Discussion (Misc queries) 1 November 9th 05 06:01 PM
Autofill: Need to autofill one week block, (5) weekday only into cells. dstock Excel Discussion (Misc queries) 1 June 17th 05 08:21 PM


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