Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Dumb question # 32,345..Moving Around On A Spreadsheet

I would like to know the easiest way to move the cursor wround in the a
spreadsheet in order to change the focus of the cursor. I am trying to move
the sursor to a location determined by an 'if' statement and do some
formatting. Not having any "Logic Luck"
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Dumb question # 32,345..Moving Around On A Spreadsheet

A bit short on details. You don't have to move the cursor to operate on a
range.

Sub colorit()
Dim rng As Range
Set rng = ActiveSheet.Range("A10")
If rng = "Total" Then
rng.Interior.ColorIndex = 3
End If
End Sub


Gord Dibben MS Excel MVP

On Mon, 1 Jun 2009 16:03:01 -0700, HpyTrvlr69
wrote:

I would like to know the easiest way to move the cursor wround in the a
spreadsheet in order to change the focus of the cursor. I am trying to move
the sursor to a location determined by an 'if' statement and do some
formatting. Not having any "Logic Luck"


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default Dumb question # 32,345..Moving Around On A Spreadsheet

But if you do not want to use the type of code that Gord suggests, then
Select, Activate and GoTo are equally speedy for just moving the focus of
the cursor. But I would try to learn how to do it like Gord. It eliminates
the power company effect of flicker and flash.


"HpyTrvlr69" wrote in message
...
I would like to know the easiest way to move the cursor wround in the a
spreadsheet in order to change the focus of the cursor. I am trying to
move
the sursor to a location determined by an 'if' statement and do some
formatting. Not having any "Logic Luck"



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
Dumb question # 32,345..Moving Around On A Spreadsheet HpyTrvlr69 Excel Programming 2 June 2nd 09 12:54 AM
Okay, dumb question. RominallL Excel Programming 4 February 12th 07 02:50 PM
Very dumb question gregorsamsa Excel Discussion (Misc queries) 2 March 23rd 06 03:15 PM
No Dumb Question darkbearpooh1 Excel Worksheet Functions 1 January 25th 06 03:32 PM
Dumb Dim Question Michael Smith Excel Programming 1 June 25th 04 05:43 PM


All times are GMT +1. The time now is 12:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"