Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default macro that will paste a number in first blank cell of a column

I would like to create a formula or macro that will take a number that always
comes from the same cell but then pastes that information in the first blank
cell within a column.


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default macro that will paste a number in first blank cell of a column

Select the cell you want to copy and run this macro:

Sub PlaceIt()
Set r = Selection
v = r.Value
For Each cell In Range("F:F")
If cell.Value = "" Then
cell.Value = v
Exit Sub
End If
Next
End Sub

The code uses column F, but you can change it. If you click on a cell, say
B9, and run the macro, then value in B9 will be pasted to the first cell in
column F that is blank.
--
Gary''s Student - gsnu200909


"asebes" wrote:

I would like to create a formula or macro that will take a number that always
comes from the same cell but then pastes that information in the first blank
cell within a column.


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
Need macro to move to first blank cell in column Joe M. Excel Discussion (Misc queries) 6 December 16th 09 10:22 PM
macro to delete rows if cell blank in column puiuluipui Excel Discussion (Misc queries) 4 October 15th 09 05:22 PM
Macro to go to next blank cell in column RJB Excel Discussion (Misc queries) 3 February 28th 07 04:51 PM
Macro copy and paste = blank worksheet efface Excel Discussion (Misc queries) 1 April 27th 06 09:52 PM
Using a Macro to paste into Blank Cells phillipsb Excel Worksheet Functions 0 October 5th 05 05:58 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"