![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 25
|
If I search for a word (in a macro) and it is found in cell A3, is there a way to move up/down/left/right from that cell?
Also, I am having problems with the If/else syntax. If (x=3 OR x=10) then That OR syntax doesnt seem to work for me... [ This Message was edited by: Derek_35 on 2002-04-30 16:39 ] |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Sydney/Brisbane , Australia
Posts: 539
|
the macro code to move right one cell would be
activecell.select Selection.Offset(0, 1).Select |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Apr 2002
Location: Kissimmee, Florida
Posts: 384
|
After your find do
Activecell.offset(row,Col) can be + or - row numbers. On the Or front...Try if X=3 or x = 10 without the brackets. failing that...try highlighting OR and do F1 calling up help and reviewing the examples on the VB help.
__________________
Hope This Helps. Sean. Digest of Homes WinXP, XL XP |
|
|
|
|
|
#4 |
|
New Member
Join Date: Apr 2002
Posts: 25
|
I apologize for these simple questions that can be found under help. For some reason, when I installed Office XP I forgot to install the Help and my XP cd is at home 4 hours away...
|
|
|
|
|
|
#5 |
|
MrExcel MVP
Join Date: Apr 2002
Location: Vancouver BC , Canada
Posts: 6,259
|
one solution is (x=3) or (x=11)
the other solution is to just drop the brackets. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|