LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 153
Default Help creating part of a macro (find Empty column)


Sub Macro2()
Sheets("Sheet1").Select
Range("A1").Select
Do Until ActiveCell.Value = ""
ActiveCell.Offset(0, 1).Select
Loop
NewAddress = ActiveCell.Address
End Sub

-----Original Message-----
I have created a macro which seems to be working fine,

however I can't
get it to copy into the right location.

The macro selects a portion of a work sheet, copies it,

selects a
different work sheet, and then pastes it.

Now my problem is that every time I run this macro it is

pasting over
the same area, but I want to to select the area just to

the right of
the current data.

So basically what I need is a way to test if a cell is

empty (starting
at B1), if this cell is not empty I want it to move to

the next cell
(C1), and repeat until it hits an empty cell, but I

can't figure out
how to get this working since I am very new to excel

marcos.

Thanks in advance
.

 
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
Find first empty cell in column TomHull Excel Discussion (Misc queries) 1 November 9th 09 05:16 AM
Find first empty cell in column TomHull Excel Discussion (Misc queries) 2 November 9th 09 01:37 AM
How to: Find first empty cell in column DW Excel Worksheet Functions 18 October 12th 07 05:57 AM
Find part of text in column or array Pasmatos Excel Discussion (Misc queries) 0 November 8th 05 10:34 AM
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 08:47 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"