UserForm as a QueryForm


"Excel VBA Help"

 


Play Friv Now - Play Friv Games
Go Back   The Code Cage Forums > Microsoft Topics > Microsoft Excel Forum
Our Info Pages:-
The Code Cage - Microsoft Office help

Notices

Microsoft Excel Forum Members Post questions in this forum if they are related to using Microsoft Excel, this includes Worksheet Functions, Excel VBA Programming, Simple Macro Code & Charting, Excel formula etc.

New Reply
Thread Tools Rate Thread Display Modes
  #1  
Unread 6th February 2017, 15:53
silvapereira's Avatar
silvapereira silvapereira is offline
Junior Member
MS Office Version: Ms Office 2013
MS Office Skill Level: Some VBA experience
 
Join Date: Feb 2017
Location: Lisbon, Portugal
Posts: 28
Posts Per Day: 0.19
My Top Tip Count: 0
Thanks to others: 1
Thanked 0 Times in 0 Posts
Reputation: 10 (1) silvapereira is on a distinguished road
Portugal
Default UserForm as a QueryForm
     Excel: VBA   


------ Register to get rid of these "In Post" ads! ------

Category: Excel: VBA   

Hi people,
Is it possible in excel, to create a userform that works as a searchForm?

What I want is when I select either one or two or several (textBox, Combobox in the header), and then I click Filter Button, the listbox will present the results of the criteria that I select previously. In the userform code I insert a code that does that on a acess form, but of course it is very diferent and doesn't work .
The other thing is automatic filling of de Sum of Price and Sum of Receipt fields in the footer, that will change as we change the filtered criteria.

I attach a workbook with the data and the userform layout.

Can anyone hellp me!?
Thanks a lot
Attached Files To view attachments in this forum your post count must be 2 or greater. You currently have 0 posts.

The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!

  #2  
Unread 6th February 2017, 22:31
Ingolf's Avatar
Ingolf Ingolf is offline
Junior Member
MS Office Version: Ms Office 2013
MS Office Skill Level: Proficient with Excel
 
Join Date: Oct 2011
Location: KK
Posts: 22
Posts Per Day: 0.01
My Top Tip Count: 0
Thanks to others: 3
Thanked 2 Times in 2 Posts
Reputation: 60 (6) Ingolf will become famous soon enough
Peru
Default Re: UserForm as a QueryForm

------ Register to get rid of these "In Post" ads! ------


If I understand, I worked for nothing...

  #3  
Unread 6th February 2017, 23:44
silvapereira's Avatar
silvapereira silvapereira is offline
Junior Member
MS Office Version: Ms Office 2013
MS Office Skill Level: Some VBA experience
 
Join Date: Feb 2017
Location: Lisbon, Portugal
Posts: 28
Posts Per Day: 0.19
My Top Tip Count: 0
Thanks to others: 1
Thanked 0 Times in 0 Posts
Reputation: 10 (1) silvapereira is on a distinguished road
Portugal
Default Re: UserForm as a QueryForm

------ Register to get rid of these "In Post" ads! ------


Ingolf,
Now is a different thing.
As I said, your help was fantastic and I use your code and did the The UserForm with filtered comboboxes and it worked very well.
Know I don't want to filter one combobox from another, I want every field in the form serve to fill with search criteria. Maybe I do not explain me well, but I think know is a very different form. Did you look to the file I upload?
Your work was very appreciated, and I'm very grateful to you.
Thank You

The Code Cage Advertisment
Advertisement
  #4  
Unread 10th February 2017, 11:54
silvapereira's Avatar
silvapereira silvapereira is offline
Junior Member
MS Office Version: Ms Office 2013
MS Office Skill Level: Some VBA experience
 
Join Date: Feb 2017
Location: Lisbon, Portugal
Posts: 28
Posts Per Day: 0.19
My Top Tip Count: 0
Thanks to others: 1
Thanked 0 Times in 0 Posts
Reputation: 10 (1) silvapereira is on a distinguished road
Portugal
Default Re: UserForm as a QueryForm

------ Register to get rid of these "In Post" ads! ------


Dear friends,
I Think I found the solution on this Link :
http://www.onlinepclearning.com/adva...-in-userforms/

Thank you anyway
Regards

The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!

New Reply
The Code Cage at Facebookhe Code Cage at Twitter


Tags
queryform, userform

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

The Code Cage Affilliates



http://www.thecodecage.com/forumz tested by McAfee Security http://www.thecodecage.com/forumz tested by McAfee Security

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


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Template-Modifications by TMS
No part of this board, functionality or creatives may be copied or reproduced either in part or full without the express permission of The Code Cage Team.
Copyright ©2008 - , Simon lloyd.
We are not associated with nor employed by Microsoft in any way, we simply provide resources!
All MS office icons are registered trademarks of the application they represent and are used with permission from Microsoft
UA-8135493-1
Cultural Forum | Study at Malaysian University