Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default inserting the numbers into excel column ?

Hi all,

I need to get my excel table column A filled with the numbers in this format
:

____A ______ B ______ C
(1),
(2),
(3),
....
....
(1749),
(1750),

Could someone help me with a simple macro which could do that for me ?

Thanks a lot in advance !



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 135
Default inserting the numbers into excel column ?

On Jan 17, 3:41*pm, "wind****er" wrote:
Hi all,

I need to get my excel table column A filled with the numbers in this format
:

____A ______ B ______ C
* * * *(1),
* * * *(2),
* * * *(3),
...
...
* * *(1749),
* * *(1750),

Could someone help me with a simple macro which could do that for me ?

Thanks a lot in advance !


You don't need a macro for this. Simply create a custom format.

Format | Format Cells / Category: Custom / Type: (#)

Matt
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default inserting the numbers into excel column ?

On Jan 17, 3:41 pm, "wind****er" wrote:
Hi all,

I need to get my excel table column A filled with the numbers in this format
:

____A ______ B ______ C
(1),
(2),
(3),
...
...
(1749),
(1750),

Could someone help me with a simple macro which could do that for me ?

Thanks a lot in advance !


Sub Macro1()
Dim k As Integer
Dim str As String

Columns("A:A").NumberFormat = "@"

Cells(1, 1) = "_____A"
Cells(1, 2) = "_____B"
Cells(1, 3) = "_____C"


For k = 1 To 1750
str = "(" & k & ")"
Cells(k + 1, 1) = str
Next

End Sub
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
Excel crashes when inserting a row or column MM Excel Discussion (Misc queries) 3 August 6th 08 01:34 AM
inserting a dash into a column of numbers pm Excel Worksheet Functions 6 November 8th 06 09:51 PM
Inserting a column using C# and Excel 2000 rkappini[_3_] Excel Programming 2 February 8th 06 06:23 AM
Inserting line numbers into the first column of an excel worksheet rkappini Excel Programming 1 February 6th 06 12:25 PM
Counter for inserting sequence of numbers in Column C Mike Excel Programming 2 January 12th 05 06:06 PM


All times are GMT +1. The time now is 06:31 PM.

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"