real simple question one for scrolling left or right

APPPRO

Active Member
Joined
Aug 6, 2002
Messages
256
I need the proper syntax for just moving from one cell to another in a specific direction.

for ex:
after entering in C10 I want the indicator to go to C11 or vice versa.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
See the Tools | Options... menu command's Edit tab. Notice the "Move selection after Enter option".
 
Upvote 0
Use the offset command in VBA:

e.g.
</pre>
Activecell.Offset(1,0).Select 'Go right
Activecell.Offset(-1,0).Select 'Go left</pre>

What is it that you are trying to do? You rarely have to select cells in VBA. There may be a more efficient way of carrying out your task.

HTH
 
Upvote 0
Dear Mark,

It's all part of the same problem that you responded to under my other post. Basicly what I am trying to do is create my own template that aren't templates. I want to use an elaborate form to gather information from the user and other excel different databases then enter that consolidated information to a new database. problem is that I have multiple rows of data that I want to enter at one time. AND i want it to create a Index# - ROW() number for each entry. I have come up with the following macro that does it fine ,but it seems cumbersum to me.

Range("I2:BF9").Copy
Sheets("db").Select
Range("I16").Select
Cells.Find(What:="", After:=ActiveCell, LookIn:=xlValues, LookAt:= _
xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:= _
False).Activate
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Range("H2:H10").Copy
Range("H16").Select
Cells.Find(What:="", After:=ActiveCell, LookIn:=xlValues, LookAt:= _
xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:= _
False).Activate
ActiveSheet.Paste
Application.CutCopyMode = False
Sheets("ENTRY").Select
End Sub

Since the Index# MUST be a formula and not a paste value I have to move over one column to the left After I value paste all the other information - then copy the row() formula to the newly entered cells.

I hope this explains it. I'm more confused now then ever!

Andy
 
Upvote 0
And Mark - I put your Active cell macro into the routine and it doesn't work. What did I do wrong now????

ENTER_TO_DB_THREE Macro
' Macro recorded 10/16/02 by ANDREW P. POLSKY
'

'
Range("I2:BF9").Copy
Sheets("db").Select
Range("I16").Select
Cells.Find(What:="", After:=ActiveCell, LookIn:=xlValues, LookAt:= _
xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:= _
False).Activate
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
ActiveCell.Offset(-1, 0).Select 'Go left
Range("H2:H10").Copy
ActiveCell.Paste
Application.CutCopyMode = False
Sheets("ENTRY").Select
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,629
Messages
6,120,630
Members
448,973
Latest member
ChristineC

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top