How to activate a cell or enter into Edit mode on Mac Excel

80Brindley

New Member
Joined
Aug 17, 2015
Messages
5
I have created a formula by concatenating a number of cells with text.

Example:

ActiveCell.FormulaR1C1 = _
"=CONCATENATE(""=VLOOKUP(X3,'["",R1C24,"".csv]"",R1C24,""'!$C$2:$BA$13957,"",R[-2]C,"",FALSE)"")"

Output would be:

=VLOOKUP(X3,'[ForMazImages23-7-15-Import.csv]ForMazImages23-7-15-Import'!$C$2:$BA$13957,2,FALSE)

I can manually click on the formula Bar for each cell (as if to edit it) then press Tab and the Concatenated text will then convert into the formula and calculate the result.

I am trying to replicate this in a VBA macro however i my macro moves to the next cell without activating/editing the cell to convert the contents to a formula.

I have tried:


Do While Not IsEmpty(ActiveCell.Offset(0, 1).Range("A1"))
ActiveCell.Offset(0, 1).Activate
Loop

I have also tried:

Do While Not IsEmpty(ActiveCell.Offset(0, 1).Range("A1"))
ActiveCell.Offset(0, 1).Activate
Application.SendKeys("F2")
Loop

However in both cases, the macro just moves to the next cell without converting the text to a formula.

Any ideas? I'm not sure if i should mention that i'm using Excel for Mac.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,214,943
Messages
6,122,380
Members
449,080
Latest member
Armadillos

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