Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Previous Column

Hello
How do I test the value in the previous column; using Activecell?

In my code, I activate a cell so that I can place a value in it. Using a Do
Until loop, I want to generate a number until the value is greater than the
number in the previous column (same row).

Thank you so much
Terry V


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Previous Column

Maybe somethin like:

Sub a()
With ActiveCell
While .Value < .Offset(0, -1).Value
.Value = .Value + 10
Wend
End With
End Sub


--
Jim Rech
Excel MVP


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
Keep a previous year when entering down a column Karlene Excel Discussion (Misc queries) 1 February 25th 10 05:30 PM
repeat entry from previous column jdw Excel Worksheet Functions 1 January 30th 10 02:06 PM
Based on data in previous column - sum of values in next column Beena K Excel Worksheet Functions 1 April 7th 09 07:23 PM
Shortcut to select column with data in previous column TJAC Excel Discussion (Misc queries) 1 July 10th 07 06:12 PM
vlookup value from previous column simonc Excel Discussion (Misc queries) 1 April 26th 07 10:34 AM


All times are GMT +1. The time now is 09:28 PM.

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"