I had a macro that used to work (Excel 2010). We recently upgraded to Windows 8, and it no longer works the way it's supposed to.
I receive data as text. I combine two fields, then hit a macro button to convert it to General format. Pretty simple. Here is the original macro:
Sub General_Format()
'
' General_Format Macro
'
'
ActiveCell.Select
Selection.NumberFormat = "General"
ActiveCell.Select
SendKeys "{F2}", True
SendKeys "{ENTER}", True
ActiveCell.Offset(-1, 0).Select
End Sub
In the attached file, cell B3 has the formula I typed. When I hit the macro, it should change the format to General, hit F2 (I don't know why I have to do this to get it to "take", but I do), then hit Enter. Then I have it move back up a cell, since hitting Enter moves down one cell.
Cell B2 shows what happens when I do the above manually, but I don't know why the macro no longer works properly.
After some checking online, I tried adding in a Wait line, but that didn't fix it.
Any help is appreciated!
Bookmarks