Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 06-27-2011, 11:06 AM
OTPM OTPM is offline How can I fill the below emty cells with above cell data? Windows 7 32bit How can I fill the below emty cells with above cell data? Office 2010 32bit
Expert
 
Join Date: Apr 2011
Location: West Midlands
Posts: 981
OTPM is on a distinguished road
Default

Hi
Paste this code into a module in your workbook. It will deal with 1000 rows in Column A of your worksheet.
Let me know if you need to cover more columns.

Sub CellCheckForBlank()
'
' Check for Blank Cells and populate with value above
'
For Count = 1 To 1000
myVal = Range("A" & Count)
Range("A" & Count + 1).Select
If Range("A" & Count + 1) = "" Then
Range("A" & Count + 1) = myVal
End If
Next Count
End Sub


Tony (OTPM)
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Move data from 1 cell to another cell Catalin.B Excel 1 06-25-2011 12:51 PM
How to fill a cell with random numbers to do calculations? zanat0s Excel 1 06-13-2011 10:33 AM
How can I fill the below emty cells with above cell data? How to combine different cells data in one cell? Learner7 Excel 1 07-28-2010 12:07 PM
How can I fill cell color starting from Cell D5 using Conditional formatting instead Learner7 Excel 0 07-08-2010 05:50 AM
Automatically entering/fill data in cells in Excel 2003 dipdog Excel 0 08-17-2006 08:37 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:35 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft