Help changong Lotus code to Excel

wdpittjr

New Member
Joined
Feb 5, 2014
Messages
6
Lotus code looks like this except it was all on one line: <BASEFONT color=#000000 size=1 face=Arial LOTUS_SIZE="10"></BASEFONT>
{?}{RIGHT}{?}{RIGHT}{?}{RIGHT}{?}{RIGHT}{?}{RIGHT}{?}{DOWN}{LEFT 4}{RIGHT}{?}{RIGHT}{?}{RIGHT}{?}{RIGHT}{?}{DOWN}{LEFT 5}{BRANCH \C}

<TBODY>
</TBODY>
I let Excel record the key strokes I want (see below) basically I would like it if instead of the numbers example "458, 1458, etc" that I could just enter new data from the keyboard in those places. The standard keyboard settings will almost work except the second line of data starts two cells to the right of the upper line requiring me to tab two extra times.
select_all_icon.jpg
page_white_copy.png


<CODE>ActiveCell.FormulaR1C1 = "458" Range("C3").Select ActiveCell.FormulaR1C1 = "1458" Range("D3").Select ActiveCell.FormulaR1C1 = "14" Range("E3").Select ActiveCell.FormulaR1C1 = "15" Range("F3").Select ActiveCell.FormulaR1C1 = "45" Range("C4").Select ActiveCell.FormulaR1C1 = "hfgr" Range("D4").Select ActiveCell.FormulaR1C1 = "ytur" Range("E4").Select ActiveCell.FormulaR1C1 = "jdjhd" Range("F4").Select ActiveCell.FormulaR1C1 = "kjgye" Range("B5").Select</CODE>
</PRE>
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
I'm not sure what you mean by the second line starting two cells to the right of the upper line.

The sequence in your code is C3:F3, C4:F4, then B5, which can be accomplished in the Worksheet Change event like this:

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim c, x
c = Array("C3", "D3", "E3", "F3", "C4", "D4", "E4", "F4", "B5")
x = Application.Match(Target.Address(0, 0), c, 0)
If IsNumeric(x) Then Range(c(x Mod 9)).Select
End Sub

Copy the above code.
Right click on the sheet tab where you want this to happen on, paste the code in the white area. Hit Alt-q
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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