Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Auto fill a cell with data from the cell above


I thank you for the code but can not make it work. I am a novice for the
most part. I can change things somtimes to get results. I have already
some code in my sheets to advance to other cells. I don't know it this
will cause a problem. Here is what I have now, I have attached a zip
file of part the worksheet. What I am doing now is jumping from part
name cell to the material cell because the part number is an =if. Then
we jump from the per cell back to the part name cell to start another
line. What I would like to do is have values in the width(G) column and
length(H) column be copied to the cell below on enter if no value is
entered in the cell below. So if in row 01 width was 50 and in row 02
the width was going to be 50 I would like to be able to just enter and
the same with the length(H) column. But be able to enter a different
value also that would be the next value to be the copied value. The
cell above should always be the hot cell for lookup. I hope this is not
to long winded, I just trying to get acrossed what I am trying to do.
Thanks everybody for the help.


Private Sub Worksheet_Change(ByVal Target As Range)
Dim endCol As Range, startCol As Range
Set endCol = Range("m:m")
Set startCol = Range("B:B")
If Not Application.Intersect(endCol, Range(Target.Address)) Is Nothing
Then Cells(ActiveCell.Row + 1, startCol.Column).Select
Dim endCell As Range, startCelll As Range
Set endCell = Range("b:b")
Set startCell = Range("d:d")
If Not Application.Intersect(endCell, Range(Target.Address)) Is Nothing
Then Cells(ActiveCell.Row, startCell.Column).Select
End Sub


+-------------------------------------------------------------------+
|Filename: Job2006.zip |
|Download: http://www.excelforum.com/attachment.php?postid=5207 |
+-------------------------------------------------------------------+

--
GSXR1000
------------------------------------------------------------------------
GSXR1000's Profile: http://www.excelforum.com/member.php...o&userid=37398
View this thread: http://www.excelforum.com/showthread...hreadid=572278

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
Auto Fill Cell Based on Data in a different cell JB Bates[_2_] Excel Discussion (Misc queries) 4 October 15th 09 04:17 PM
Auto fill cell based upon another cell value Shek5150 Excel Discussion (Misc queries) 3 November 3rd 08 03:28 PM
How do I auto-fill a cell dependant on the value of another cell? Naisha1000 Excel Worksheet Functions 1 March 17th 06 07:08 PM
Auto-fill cell based on adjacent cell information.. sans Excel Worksheet Functions 1 October 17th 05 11:38 PM
auto fill data into a cell from a lookup table Tetradpoint Excel Discussion (Misc queries) 1 April 19th 05 04:46 PM


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