Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default If/Then statements

Does anyone know if or how to setup a macro that will look at a cell and if it has a value greater than 0, then the cursor would go to the next cell to the right?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default If/Then statements

Try:

Sub Temp
Range("A1").Select
If range("A1").Value0 Then
ActiveCell.Offset(0,1).Select
End If
End Sub

"thop" wrote:

Does anyone know if or how to setup a macro that will look at a cell and if it has a value greater than 0, then the cursor would go to the next cell to the right?

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
IF statements Dwain Kincaid Excel Worksheet Functions 6 January 8th 08 01:04 AM
If statements two Jason Excel Discussion (Misc queries) 3 January 3rd 08 07:29 PM
IF Statements (Mutliple Statements) Deezel Excel Worksheet Functions 3 October 19th 06 06:13 AM
If statements kieffer Excel Worksheet Functions 8 February 22nd 06 03:19 PM
If statements paule1982 Excel Discussion (Misc queries) 4 February 18th 06 05:09 PM


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