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: 44
Default code to go down a column and find the last cell with data before an empty cell

I have about 135 sets of data in an Excel spreadsheet. Each data set
is a range of 4 rows by 8 columns. The cell in the first row and 1st
column is always empty. For each data set I am trying to put all of
the data in the first row in 31 columns. What is the code to go to
the last cell in a column that has data before an empty cell. I am
trying to create a range of 3 rows by 8 columns and move the data to
the first row. Then I want to create a range of 2 rows by 8 columns
and move the data to the first row. Then I want to create a range of
1 row by 8 columns and move the data to the first row. I need to do
this about 135 times. It takes me more than an hour to do this with a
macro. Since macros do not loop I would like to write a VBA program
to do this with one mouse click.

Any help would be greatly appreciated. This is my first VBA project
in Excel. I have one reference book--Programming in Excel 2000 with
VBA by John Walkenbach. I use Excel 2003.

Steve G

 
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
How to: Find first empty cell in column DW Excel Worksheet Functions 18 October 12th 07 05:57 AM
find first empty cell in column and start transpose next row in that cell ali Excel Discussion (Misc queries) 6 July 21st 07 11:55 PM
find first empty cell in column and start transpose next row in that cell ali Excel Programming 3 July 21st 07 03:12 PM
Find First empty cell at end of Column A DG Excel Programming 7 December 19th 06 06:20 PM
Find a empty cell in next column Michael Excel Discussion (Misc queries) 3 June 15th 05 02:18 PM


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