LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default a macro for inserting

Monkey Boy
if it is always 10 digits, you could try

Sub ChangeFormat()
Columns("A:A").NumberFormat = "000000-0000"
End Sub

"spreadsheet monkey" wrote:

I need a solution/macro to insert a minussign (-) into a 10 digit number
between digit 6 and 7 (to get a number looking like this xxxxxx-xxxx)

I need to do it in a single column for all 65 536 lines of code in the
spreadsheet.

who of you is nerd enough to tackle this challenge?

 
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
macro for inserting a row Kazuki Excel Programming 1 August 22nd 06 06:38 AM
Macro for copying & inserting a row goeppngr[_3_] Excel Programming 1 March 24th 06 04:55 PM
inserting row macro daroc Excel Discussion (Misc queries) 2 March 7th 06 06:27 PM
Inserting A Row Macro PW11111 Excel Programming 2 December 16th 04 10:27 AM
Inserting a Row With Macro - Help iltf124 no spam @hotmail.com Excel Programming 6 April 8th 04 08:21 PM


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