ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Refresh Button (https://www.excelbanter.com/excel-worksheet-functions/56061-refresh-button.html)

Iguss

Refresh Button
 

I am trying to create a module/procedure code which would let me fill
missing fields in Excel based on the values that are above and below it.
(That is realy confusing)

As an example I have 6 cells one of them has variable? "Close" and the other
"New".

I need to write a loop in Excel where empty fields that are above or below
variable "Close" would show "Close" and variable "New" would fill empty
space that are below "New" cell.

I believe that it would start something like Sub RefButton()

If cell = "Close" empty cell above is also "Close" and empty cell below =
"Close.

Then

If cell is "New" empty cell below would also be= "New".

Would anyone know of a cure to my problem?

Igor




All times are GMT +1. The time now is 07:05 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com