Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default I need help with macro's

I need help with a macro that will get information from a specific sheet that
has multiple characters and dispurse those characters in differnt columns on
another sheet. for example sheet 1 column one would be 1840 blk bott to
sheet 2 row 1 1840 row 2 blk bott. thank you
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default I need help with macro's

Sub movesheet2()

Worksheets("sheet1").Activate
RowCount = 1
With Worksheets("sheet2")
Do While Cells(RowCount, "A") < ""

Number = Val(Cells(RowCount, "A"))
Text = Cells(RowCount, "A")
Text = Trim(Mid(Text, InStr(Text, " ")))
.Cells(RowCount, "A") = Number
.Cells(RowCount, "B") = Text
RowCount = RowCount + 1
Loop
End With
End Sub


"Nolaughmtr" wrote:

I need help with a macro that will get information from a specific sheet that
has multiple characters and dispurse those characters in differnt columns on
another sheet. for example sheet 1 column one would be 1840 blk bott to
sheet 2 row 1 1840 row 2 blk bott. thank you

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default I need help with macro's

Thanks Joel.

"Joel" wrote:

Sub movesheet2()

Worksheets("sheet1").Activate
RowCount = 1
With Worksheets("sheet2")
Do While Cells(RowCount, "A") < ""

Number = Val(Cells(RowCount, "A"))
Text = Cells(RowCount, "A")
Text = Trim(Mid(Text, InStr(Text, " ")))
.Cells(RowCount, "A") = Number
.Cells(RowCount, "B") = Text
RowCount = RowCount + 1
Loop
End With
End Sub


"Nolaughmtr" wrote:

I need help with a macro that will get information from a specific sheet that
has multiple characters and dispurse those characters in differnt columns on
another sheet. for example sheet 1 column one would be 1840 blk bott to
sheet 2 row 1 1840 row 2 blk bott. 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
Hide Macro's in Toolbar / Macro's list sparx Excel Discussion (Misc queries) 2 May 6th 06 08:53 PM
Macro's CraigM Excel Worksheet Functions 2 January 17th 06 01:06 PM
macro'S Mike Cammack Excel Programming 1 April 15th 05 11:03 AM
Macro's mike b Excel Programming 1 April 2nd 05 01:53 PM
macro's ELVIS ARON PRESLEY Excel Worksheet Functions 1 November 10th 04 06:42 PM


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