Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Create new excel work sheet by increment 2 on 3rd character

I need create an worksheet as following by using macro, the cell only 6
numeric number like this
000002
002002
004002
006002
.....
998002
first and second character is 0,the 3rd character need to increment by 2 for
each row, the 5th and 6th character is 0, the sixth character is 2 all the
way to the end, the last row will be 998002.
did any one how to do this in excel macro?

thank you so much
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Create new excel work sheet by increment 2 on 3rd character

type cell A1 '00000
type cell A2 '00200
highlight both cells and cursor to right bottom of this range (turns into +)
and drag dwon
type in B1 '2
copy 2 in all the way down. all cells in this column will have 2

in C1 type
=A1&B1
now cursor to bottom right (+sign) and drag down.

perhaps there may be easier ways





Lillian wrote in message
...
I need create an worksheet as following by using macro, the cell only 6
numeric number like this
000002
002002
004002
006002
....
998002
first and second character is 0,the 3rd character need to increment by 2

for
each row, the 5th and 6th character is 0, the sixth character is 2 all the
way to the end, the last row will be 998002.
did any one how to do this in excel macro?

thank you so much



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Create new excel work sheet by increment 2 on 3rd character

Hi,

Sub TEST()

Sheets.Add After:=ActiveSheet

With Range("A1:A499")
.Formula = "=TEXT(ROW()*2,""'000"")&""002"""
.Value = .Value
End With

End Sub



--
Regards,
Soo Cheon Jheong

_ _
^ąŻ^
--



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
flash object dont work in my excel work sheet Nitn Excel Discussion (Misc queries) 0 July 4th 09 08:00 AM
workaround for problem hyperlinks in Excel (doesn't work if pathcontains # character) [email protected] Excel Worksheet Functions 0 December 21st 07 10:04 PM
Can I create a special character for the Character Map? JohnP Excel Discussion (Misc queries) 3 December 24th 06 01:10 AM
How do I create a watermark on an excel work sheet? sue Excel Discussion (Misc queries) 1 August 16th 05 10:33 PM
Increment Alpha Character Dan Excel Programming 4 June 3rd 04 07:32 PM


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