Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'll put some questions in the code
" wrote: Hi Pls assist me. Thank you. My macro will move to the cell on the right when the current cell is occupied & stop once it has been set to the new empty cell. Sample of my data A1 A2 C1 123 burner_cell is the cell containing 123 i have written some code to do this but i can't seems to get it to work my code = Dim burner_cell As Range Dim WS As Worksheet, WS2 As Worksheet Dim counter As Integer counter = 1 Set WS = Worksheets("Summary") Set burner_cell = Range("B8") While counter < 13 If Not (IsEmpty(burner_cell)) Then burner_cell = burner_cell.Offset(0, 1) '<~~~do you want to reset the range name or reset the value in the range? THis resets the value in the range. If you want to reset the range name, you'll need to include SET before your statement counter = counter + 1 End If Wend then i use burner_cell(new empty cell) to save the result of some calculation |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA Code - Find & Move | Excel Discussion (Misc queries) | |||
VBA code to move contents from one cell to another | Excel Programming | |||
Edit / Move or copy sheet stopped working in Excel 2003 | Excel Worksheet Functions | |||
VB code to move cursor 'one cell down? | Excel Programming | |||
How to move files from the code | Excel Programming |