Creating a Macro that double click a cell

JackHiro

New Member
Joined
Apr 23, 2013
Messages
4
Hi All!

I'm new here so please forgive any of the stupid things I might say :)

I'm trying to create a macro that goes thru all the cells in a row, double clicks them and goes on to the next cell (all the cells already have values in them).
When I record this then this is the code that is written:

ActiveCell.FormulaR1C1 = "6"
ActiveCell.Offset(1, 0).Range("A1").Select

This actually changes the value of the cell to "6" or what ever was in that cell.
I've tried using "application.doubleclick" but that didn't work at all and the same with "sendkeys F2"
The cell have a data validation on them that I can't for the life of me see but I know that if the cell has a number in it a little Green "flag" appears at the right hand top corner saying that "the number in this cell is formatted as text" I need to do this on all cells so that the green "flag" will appear.

I hope this is clear enough and not too "dumb".

Thanks in advance for helping me out with this!

Jack
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Thank you so much for your quick reply Andrew!
I've tried this at home on a file that I've created and it seems to work I will test it out tomorrow at work on the files I'm having trouble with.
Again, Thank you so much!
 
Upvote 0
I've tested it today on the files that I had to use it for at work and it worked perfectly :)

Thank you so much Andrew!
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,906
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