Hi, i have a sub form_load() and a sub process_click() but i dont know how to connect them. meaning the variables i used in form_load() i want to be able to use in process_click(). both are public subs and here is the code from both: your help is greatly appreciated...thanks
Public Sub...
hi, thanks for your help from before, i wanted to ask what is the syntax to copy folders along with files? *.* only copies files and doesnt replicate the source directory into the destination directory
thanks for all your help
THanks!!! so much what about this function:
why is it being used and what is it testing for? It is creating a directory but what directory is it creating?
Public Function MakeDir(strPath As String) As Boolean 'makedirectory function NOT SURE WHAT THIS DOES
If Right(strPath, 1) <>...
Thanks!!
What am i supposed to put in the FormLoad(). Is that where the beginning of my code goes...meaning everything else that ive coded. And can i call this page rather then copy it into the program from the previous page?
Last question, Command1_Click() what is the purpose of that...
...(ByVal lpPath As String) As Long
Private Sub Form_Load()
'Copy files from one Dir to another, selected filepattern, NO FSO
'"*.*" all files
'"*.txt" text files
'"*.exe" 'NOT SURE WHATS SUPPOSED TO GO IN HERE
End Sub
Private Sub Command1_Click()...
iwas trying to run the code that LPlates wrote up above but i get an error on the first line:
Private Declare Function MakeSureDirectoryPathExists Lib "imagehlp.dll" (ByVal lpPath As String) As Long
of only comments may appear after end sub
Ok sorry about the confusion, here goes:
i want to create a menu with two choices:
1. select a time period
2. exit
if a time period is selected i want to check to see if the user is on a server or on his/her local drive. This can be done by simply looking up to see if the drive is local...
Thanks for your help!! i dont want to use FSO because it might not be available for some users. I will try and run tho=rough the above code in a new project and see what happens.
basically when i say If getKey("software\financial\Paths\User Path") = Null Then
im just trying to...
is this my question on whther or not i can create a function and just call it. if so how do i use this and how do i get rid of the current code i have?
thanks for your help :)
i dont want to return the text or index i am going to do other processing when the user selects one of the choices. The problem im having is in my flow cchart i have to read the choices first then create a menu of either selecting a choice or exit. if the user selects a choice then im checking...
Hi, i wrote a flow chart for a project but im kind of stuck. Here is the flow chart
read selected choices
'main menu
user exits or
user picks a choice
im having trouble with the read the choices. I have a list of 5 time periods written in a combo box. How do i read the time periods...
...(dataDirectory)
If Err.Number Then 'cannot use fileSystemobject
Err.Clear
fileSysError = Dir(dataDirectory & "\*.*", vbNormal)
Else
If Not fileSysObject.FolderExists(dataDirectory & "\OTPTemp") Then...
Im sorry but im not familiar with late binding. I was only told my a coworker that i was going to get an error if the user didnt have the proper add-ins when i use file sys object function. This is why im asking if there is a way to copy files using a function or class. How about something...
sorry to bother you again, but i have another question regardig this copying function. I just realized that if a user is going to be using this then they will need to register the appropriate dll's inorder for the file sys object to give an error. Is there a way to maybe create a function to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.