Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 683
Default Help with calling Data Form

Hello all,

Having managed to create a reporting tool, first attempt at excel VBA, my
manager now wants an update built in. I thought the easiest way would be to
call the Standard Form from the Data tab. Although by simply highlighting the
cells, and selecting from the drop down lis, my code does not appear to work.

Private Sub CommandButton1_Click()
Dim ws As Worksheet
Set ws = Worksheets("GSOPs")
Range("A3:H32").Select
With ActiveSheet
..ShowDataForm
End With

Any suggestions would be gratefully recieved. 2 days to finish this off and
multiple sheets to build in to the options.

Thanks,

End Sub


--
Brian McCaffery
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 791
Default Help with calling Data Form

I'm not sure what you mean by "Standard Form" but in your code to show a form,
You need to type the form name something like this:
UserForm1.Show
And UserForm1.Hide

to hide it.

This is assuming your form name is: "UserForm1" which is the default name.


--
If this posting was helpful, please click on the Yes button.
Regards,

Michael Arch.




"Brian" wrote:

Hello all,

Having managed to create a reporting tool, first attempt at excel VBA, my
manager now wants an update built in. I thought the easiest way would be to
call the Standard Form from the Data tab. Although by simply highlighting the
cells, and selecting from the drop down lis, my code does not appear to work.

Private Sub CommandButton1_Click()
Dim ws As Worksheet
Set ws = Worksheets("GSOPs")
Range("A3:H32").Select
With ActiveSheet
.ShowDataForm
End With

Any suggestions would be gratefully recieved. 2 days to finish this off and
multiple sheets to build in to the options.

Thanks,

End Sub


--
Brian McCaffery

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
Calling JJ re generate form at runtime michael.beckinsale Excel Programming 0 October 17th 06 05:23 PM
calling function form within sub Dirk[_4_] Excel Programming 1 March 16th 06 01:27 PM
Calling the Print Form Derek from Belgium Excel Programming 2 May 23rd 05 02:12 PM
Calling Com addin from form button on sheet? Robin Hammond[_2_] Excel Programming 8 January 8th 05 03:03 AM
Calling variable from user form Geraldon Excel Programming 2 February 9th 04 03:18 PM


All times are GMT +1. The time now is 10:11 PM.

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"