Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default F2 + <enter without sendkeys?

Hi

Can someone please give me an elegant vba method of simulating F2 followed
by enter on a specified cell without using sendkeys?

The purpose is to convert a number stored as text back to a numerical value.

Any alternatives?

Thanks

--
Return email address is not as DEEP as it appears


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default F2 + <enter without sendkeys?

Jack,

ActiveCell.Value = ActiveCell.Value


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Jack Schitt" wrote in
message ...
Hi

Can someone please give me an elegant vba method of simulating

F2 followed
by enter on a specified cell without using sendkeys?

The purpose is to convert a number stored as text back to a

numerical value.

Any alternatives?

Thanks

--
Return email address is not as DEEP as it appears




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default F2 + <enter without sendkeys?

Thanks that is just what I wanted

"Beto" wrote in message
...
Jack Schitt wrote:

Hi

Can someone please give me an elegant vba method of simulating F2

followed
by enter on a specified cell without using sendkeys?

The purpose is to convert a number stored as text back to a numerical

value.

Instead of that you could use this:

Sub Text2Number()
ActiveCell.Value = ActiveCell.Value
End Sub

Regards,
--
Beto
Reply: Erase between the dot (inclusive) and the @.
Responder: Borra la frase obvia y el punto previo.


--
Return email address is not as DEEP as it appears


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default F2 + <enter without sendkeys?

Great, thanks

"Chip Pearson" wrote in message
...
Jack,

ActiveCell.Value = ActiveCell.Value


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Jack Schitt" wrote in
message ...
Hi

Can someone please give me an elegant vba method of simulating

F2 followed
by enter on a specified cell without using sendkeys?

The purpose is to convert a number stored as text back to a

numerical value.

Any alternatives?

Thanks

--
Return email address is not as DEEP as it appears





--
Return email address is not as DEEP as it appears


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 140
Default F2 + <enter without sendkeys?

Jack Schitt wrote:

Hi

Can someone please give me an elegant vba method of simulating F2 followed
by enter on a specified cell without using sendkeys?

The purpose is to convert a number stored as text back to a numerical value.


Instead of that you could use this:

Sub Text2Number()
ActiveCell.Value = ActiveCell.Value
End Sub

Regards,
--
Beto
Reply: Erase between the dot (inclusive) and the @.
Responder: Borra la frase obvia y el punto previo.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default F2 + <enter without sendkeys?

Jack,

Someone here in the groups told me a much easier way to convert a block of
Text into Numbers.

Copy a blank cell
Select the cells containing numbers
Edit, Paste Special
Paste = Values, Operation = Add
(effectively adds 0 to the range)

Rob


"Jack Schitt" wrote in message
...
Hi

Can someone please give me an elegant vba method of simulating F2 followed
by enter on a specified cell without using sendkeys?

The purpose is to convert a number stored as text back to a numerical

value.

Any alternatives?

Thanks

--
Return email address is not as DEEP as it appears




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SendKeys problem Rod Armour Excel Programming 3 January 23rd 04 10:44 PM
Sendkeys GB[_3_] Excel Programming 0 September 16th 03 10:39 PM
SendKeys Ron de Bruin Excel Programming 3 August 25th 03 10:21 PM
SendKeys {Enter} acts like Return rather than Enter Robert Chapman Excel Programming 6 August 6th 03 06:51 PM
sendkeys mark poole Excel Programming 0 July 11th 03 03:47 PM


All times are GMT +1. The time now is 07:04 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"