ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   ActiveSheet.ShowDataForm !! (https://www.excelbanter.com/excel-programming/328725-activesheet-showdataform.html)

RAFAAJ2000[_2_]

ActiveSheet.ShowDataForm !!
 
Hi there,

Can the DataForm ( called via ActiveSheet.ShowDataForm ) be displayed ready
for a New Record input instead of displaying the first Record ?

I have used a the Sendkey Method but can't get it to work .

Any Ideas ?

Regards.

Tom Ogilvy

ActiveSheet.ShowDataForm !!
 
Sub MyShowform()
Range("A1").Select
SendKeys "%w", False
ActiveSheet.ShowDataForm
End Sub

worked for me.

--
Regards,
Tom Ogilvy


"RAFAAJ2000" wrote in message
...
Hi there,

Can the DataForm ( called via ActiveSheet.ShowDataForm ) be displayed

ready
for a New Record input instead of displaying the first Record ?

I have used a the Sendkey Method but can't get it to work .

Any Ideas ?

Regards.




RAFAAJ2000[_2_]

ActiveSheet.ShowDataForm !!
 
Thanks Tom,

Works for me too . I was sending the wrong characters !

Regards.


"Tom Ogilvy" wrote:

Sub MyShowform()
Range("A1").Select
SendKeys "%w", False
ActiveSheet.ShowDataForm
End Sub

worked for me.

--
Regards,
Tom Ogilvy


"RAFAAJ2000" wrote in message
...
Hi there,

Can the DataForm ( called via ActiveSheet.ShowDataForm ) be displayed

ready
for a New Record input instead of displaying the first Record ?

I have used a the Sendkey Method but can't get it to work .

Any Ideas ?

Regards.






All times are GMT +1. The time now is 10:14 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com