ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   I need help with macro's (https://www.excelbanter.com/excel-programming/397090-i-need-help-macros.html)

Nolaughmtr

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

joel

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


Nolaughmtr

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



All times are GMT +1. The time now is 12:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com