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: 1
Default Make macro go to first empty cell in column?

HI, I'm really glad to see this forum. cool!
I am working on trying to getmyu macro to run.
I'm using Office for MAC on panther.

Situation: I highlight manually a certain bunch of cells.
A) I want to hit a macro key to then copy that range of cells and
B) go into another workfile and
C) past that range of cells into the first empty cell it finds under
all the other filled cells, in a certain column.

So far I can get it to do A and B. In my attempts to get it to do C I
tried clicking on the first empty cell (hoping that magically it coul
read my mind I guess to interpret it to mean to look for the first
empty cell) and that works. BUT it only works for that cell. SO that
whenever I am in teh first workbook and want to copy another different
range of cells to teh second workbook, the macro as I currently have it
set up, will copy the range and move it to that same cell whether it is
full or not, in the second workbook. It (I?) don't know how to make it
look for the next nearest empty cell in the column going down and
paste it there instead of ontop of the same one all the time..

Here's the code I have so far:

Sub movetobizsheet()
End Sub
Sub copytobiz()
'
' copytobiz Macro
' Macro recorded 1/27/2004 by Barb
'
' Keyboard Shortcut: Option+Cmd+g
'
Selection.Copy
Windows("biz2004.xls").Activate
Sheets("DOME").Select
Range("I21").Select
ActiveSheet.Paste
End Sub

I tried typing in "EmptyCell" for the Range but that didnt' work and I
got an error. Right now it only pastes into cell I21. but I want ti to
look for the nearest empty cell and paste it there.

Thansk
regards
BArb


---
Message posted from http://www.ExcelForum.com/

 
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
Macro Request: Fill in empty cells with previous Filled cell in column Artis Excel Worksheet Functions 2 June 25th 07 08:30 PM
How do I make text disappear behind its empty neighboring column? Nophcora Excel Discussion (Misc queries) 1 August 30th 06 03:47 AM
How can Excel make a cell empty without making it na()? Bruce Excel Discussion (Misc queries) 1 June 27th 06 09:31 AM
How do I make a cell appear empty when the formula = 0? t1202 Excel Discussion (Misc queries) 5 May 20th 05 11:18 PM
make a cell empty based on condition mpierre Charts and Charting in Excel 2 December 29th 04 01:01 PM


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