This just started Yesterday, I want to search for a variable in the complete project but the check box isn't there any more. The check boxes are not on any of those options. I also was going to remove the password while I copy some form from one program to another but the password would not let me blank it out, I keep getting the message invalid password. I'm not sure what I did but I could sure use some help.
Thanks.
Hey Tom,
Just ran across this question of yours. It appears you have two separate questions. I may have some insight into the first, but not the second.
I am not exactly sure where, in your project you are searching, but I do have some useful functions that search the objects within a project. For example, the following searches all your modules for a particular search word: - Public Sub SearchModules(ByVal strSearch As String)
-
On Error GoTo EH
-
Dim objComp As Object
-
Dim strMsg As String
-
Dim strModList As String
-
-
strModList = vbNullString
-
-
For Each objComp In Application.VBE.ActiveVBProject.VBComponents
-
If objComp.CodeModule.Find(strSearch, 1, 1, -1, -1) = True Then
-
strModList = strModList & ";" & vbCrLf & Chr(9) & objComp.Name
-
End If
-
Next objComp
-
-
strMsg = "Text '" & strSearch & "' found in "
-
If Len(strModList) > 0 Then
-
strMsg = strMsg & "modules:" & vbCrLf & Mid(strModList, 4)
-
Else
-
strMsg = strMsg & "no modules"
-
End If
-
-
Debug.Print strMsg
-
-
Exit Sub
-
EH:
-
Resume Next
-
End Sub
Not sure if this is the type of thing you were looking for, or something else.
Hope this hepps.
1 1569
Hey Tom,
Just ran across this question of yours. It appears you have two separate questions. I may have some insight into the first, but not the second.
I am not exactly sure where, in your project you are searching, but I do have some useful functions that search the objects within a project. For example, the following searches all your modules for a particular search word: - Public Sub SearchModules(ByVal strSearch As String)
-
On Error GoTo EH
-
Dim objComp As Object
-
Dim strMsg As String
-
Dim strModList As String
-
-
strModList = vbNullString
-
-
For Each objComp In Application.VBE.ActiveVBProject.VBComponents
-
If objComp.CodeModule.Find(strSearch, 1, 1, -1, -1) = True Then
-
strModList = strModList & ";" & vbCrLf & Chr(9) & objComp.Name
-
End If
-
Next objComp
-
-
strMsg = "Text '" & strSearch & "' found in "
-
If Len(strModList) > 0 Then
-
strMsg = strMsg & "modules:" & vbCrLf & Mid(strModList, 4)
-
Else
-
strMsg = strMsg & "no modules"
-
End If
-
-
Debug.Print strMsg
-
-
Exit Sub
-
EH:
-
Resume Next
-
End Sub
Not sure if this is the type of thing you were looking for, or something else.
Hope this hepps.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: John Spiegel |
last post by:
I probably asked this same question when I installed VS.NET on my last
machine...
What setting(s) do I need to change in order to open a web project?
Currently I get "http/1.1 403 access...
|
by: gyap88 |
last post by:
My search engine in visual basic 2005 has 4 textbox for users to input values, named textbox1,textbox2,textbox3,textbox4.
I have a string assigned to each of the textbox named...
|
by: Soulless |
last post by:
Is there a conveninent place to go to search the entire project/
solution for specific occurances of text. for instance, if I want to
find where all occurences of "counter" was in my project, is...
|
by: =?Utf-8?B?S2F5xLFoYW4=?= |
last post by:
In my project,i added datagridview to my form , i transfered my table to
datagridview and added multiple rows and when i called dataadapther.update
,,result is ok. But when i tried it for the...
|
by: suckyboy |
last post by:
Hi... I have a small problem here. I did a database on my School computer with Access 2007. However, when I use the database on my Home computer with Access 2007 there. The search function doesnt...
|
by: Arthurr |
last post by:
I have an Access database linked from SQL server and I need to create a search engine using VBA.
I managed to create search engine for varchar items, but I cant make it to search numbers as well....
|
by: Alex Corleone |
last post by:
Hi all,
I have a question, after long days of search now I have to as that question...
I want a complete search form for my table into a form. Like there should be a form where I could enter...
|
by: Sir G |
last post by:
Hi all,
I recently started using eclipse indigo with CDT 8.0 to edit a C++ project. However, whenever i try to build the project it complains that includes cannot be found. The src folder has many...
|
by: superblade |
last post by:
Hi,
Wonder if someone can help me?
I have two tables, one is a project table and one is an address table, in addition I have a project form bound to the project table.
I've created a lookup...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |