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: 7
Default Macro Problem TextToColumns

Below is macro that I €œmade€ using the Tools/Marco/Record New Macro. When I
move to next row (8 36 120 24 180 1,438 13 7,063) and press Ctrl+t I get msg
€œDo you want to replace the contents of the destination cells?€, ok/cancel
and select ok the data is placed in row 8 not current row.
Question €“ How do I get macro to put data in current/active row? I will move
to next row manually unless there is an easy way to move to next after macro
runs.
Thanks
Rick

Sub Txt2Table()
€˜
€˜ Txt2Table Macro
€˜ Macro recorded 8/7/2007
€˜
€˜ Keyboard Shortcut: Ctrl+t
€˜
Selection.TextToColumns Destination:=Range(€œB8€),
DataType:=xlFixedWidth, _
FieldInfo:=Array(Array(0, 1), Array(3, 1), Array(6, 1), Array(9, 1),
Array(11, 1), _
Array(14, 1), Array(18, 1), Array(21, 1))
End Sub

Hope I explained problem and what I am trying to do.
Thx
Rick
 
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
sub TextToColumns Gabriel[_3_] Excel Programming 1 October 21st 04 04:34 PM
Q TextToColumns Simon Woods[_3_] Excel Programming 1 May 21st 04 12:29 PM
texttocolumns Doug Broad[_4_] Excel Programming 4 April 21st 04 02:50 AM
TextToColumns Randy Reese Excel Programming 2 February 24th 04 07:44 PM
TextToColumns Dialog Howie[_3_] Excel Programming 1 October 28th 03 09:22 PM


All times are GMT +1. The time now is 09:40 AM.

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"