Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 287
Default Increase column heading letters withing routine?

After each time my program cycles through a For routine, I want it to
increase the column heading letter so that the next time it cycles through, I
can have it input data in the next column. Is there a way to do this? Thank
you.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 718
Default Increase column heading letters withing routine?

Selection.Offset(0,1).select

HTH
--
AP

"Adam" a écrit dans le message de
...
After each time my program cycles through a For routine, I want it to
increase the column heading letter so that the next time it cycles

through, I
can have it input data in the next column. Is there a way to do this?

Thank
you.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Increase column heading letters withing routine?

For i = 1 to lastNum
columnNum = i+4 'exampl starts at column E
Cells(1, columnNum_.value = "somevalue" 'E1, F1, etc.
Next i

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Adam" wrote in message
...
After each time my program cycles through a For routine, I want it to
increase the column heading letter so that the next time it cycles

through, I
can have it input data in the next column. Is there a way to do this?

Thank
you.



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
Column heading display numbers not letters Sandy Excel Discussion (Misc queries) 2 July 23rd 08 03:03 PM
Replace the column letters with my own heading Catter77 Charts and Charting in Excel 3 July 1st 08 02:40 AM
How to change collumn heading numbers into letters? Krisb Excel Discussion (Misc queries) 1 September 12th 06 12:33 PM
In a table produce an value by column heading and row heading naflan Excel Worksheet Functions 1 December 27th 05 05:18 PM
HELP - How to replace CRLF with a character withing an excel column Dino Buljubasic Excel Discussion (Misc queries) 1 August 25th 05 07:49 PM


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