Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default TextToColumns

I am importing a text report into four different worksheets. I have
that part working, Now I bringing the data into B2. A column is
reserved for checkboxes and Row 1 for Column Headings. I need the code
to select b2, downward till last nonempty cell, to apply TextToColumns
method. If this is not clear let me know. Working on 3 hours of sleep.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default TextToColumns

Set rng = Range(Cells(2,2),Cells(2,2).End(xldown))
rng.select

if you have empty cells within the data

Set rng = Range(Cells(2,2),Cells(rows.count,2).End(xlup))
rng.select

--
Regards,
Tom Ogilvy

"Randy Reese" wrote in message
...
I am importing a text report into four different worksheets. I have
that part working, Now I bringing the data into B2. A column is
reserved for checkboxes and Row 1 for Column Headings. I need the code
to select b2, downward till last nonempty cell, to apply TextToColumns
method. If this is not clear let me know. Working on 3 hours of sleep.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default TextToColumns

Thank you for being so active on this newsgroup. You have helped so
many people here.

On Tue, 24 Feb 2004 14:09:49 -0500, "Tom Ogilvy"
wrote:

Set rng = Range(Cells(2,2),Cells(2,2).End(xldown))
rng.select

if you have empty cells within the data

Set rng = Range(Cells(2,2),Cells(rows.count,2).End(xlup))
rng.select


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
What does TrailingMinusNumbers do in the TextToColumns Method Lennard van Putten Charts and Charting in Excel 3 August 5th 05 11:59 PM
TextToColumns Dialog Howie[_3_] Excel Programming 1 October 28th 03 09:22 PM


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