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 Part 2

Starting with the 4th column, I want every third column in the forth row to
say Substation and then the number. I have set a variable that is the max
substation number. I can't get this to output anything. Thanks for the help.

For a = 1 To MaxSubNumber

columnNum = 4 + (a - 1) * 3
Cells(4, columnnum_.Value) = "Substation " & a

Next a
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 336
Default Increase Column Heading Part 2

The second argument of Cells should just be columnNum surely (don't know
where the _.Value came from)?

"Adam" wrote:

Starting with the 4th column, I want every third column in the forth row to
say Substation and then the number. I have set a variable that is the max
substation number. I can't get this to output anything. Thanks for the help.

For a = 1 To MaxSubNumber

columnNum = 4 + (a - 1) * 3
Cells(4, columnnum_.Value) = "Substation " & a

Next a

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 287
Default Increase Column Heading Part 2

Thank you

"Martin" wrote:

The second argument of Cells should just be columnNum surely (don't know
where the _.Value came from)?

"Adam" wrote:

Starting with the 4th column, I want every third column in the forth row to
say Substation and then the number. I have set a variable that is the max
substation number. I can't get this to output anything. Thanks for the help.

For a = 1 To MaxSubNumber

columnNum = 4 + (a - 1) * 3
Cells(4, columnnum_.Value) = "Substation " & a

Next a

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
I want column heading non-scrolling and rows of each column scrol Q Abdul New Users to Excel 1 July 22nd 08 03:44 PM
Increase column heading letters withing routine? Adam Excel Programming 2 March 7th 06 02:30 PM
In a table produce an value by column heading and row heading naflan Excel Worksheet Functions 1 December 27th 05 05:18 PM
Find Column heading and then Delete entire column Kobayashi[_58_] Excel Programming 4 October 17th 05 09:09 PM
Need Macro to Find Column Heading -- if none, then insert new column Jeff[_43_] Excel Programming 0 December 15th 04 07:08 AM


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