I appreciate the reply, unfortunately that doesn't help me.
When I do that there are no little yellow boxes to click. Secondly, that seems like it is opening up and loading the web page in a browser which is what I am trying to avoid due to my issues with page loading time errors and just...
...FORM THE ABOVE LINE AND SO THE NEXT LINE ERRORS "Object variable not set"
txt = objCollection(0).innerText
If txt Like "*" & nme(x, 1) & "*" Then
'code for player found
Else
'code for player not found
End If
Next x...
...example:
Global n as integer
Sub Test()
n = 1
Application.Run "Test_Math", n
MsgBox (n)
End Sub
Sub Test_Math(x)
x = x * 2
End Sub
If I place both macros in the same workbook and run "Test", I get the result I expect: a message box displays the value 2. But when I place...
Maybe I wasn't clear. The second macro is to turn the function I assigned off, which I am intentionally trying to do. If I don't run it then the function I have assigned is still active. I want to de-activate my assigned function and re-activate the default function that Excel assigns when a...
I have several macros that I use all the time in Excel and so I have mapped them to function keys. However, I want to be able to toggle that ability on and off so that I can access the "original" function of those keys when I need to.
So I have built a menu with drop downs to "Turn on" and...
Understood, but I am not asking to fix specific code, rather I am asking what is a better practice regarding memory leakage. I guess to put it simply, I am asking if this:
Set wb = Workbooks.Open(fnme, True, True)
wb.Close
Set wb = Nothing
is more memory efficient than this...
This is a general question and not about specific code. I utilize multiple processes that open Excel spreadsheets, extract data to arrays and then prints those arrays to text files. My problem is that after a few runs of doing this with bigger files, I end up with an "Out of memory" error. It...
OK thanks, that's a lot of info for me to digest. But before I do let me ask this. You keep referencing a user form:
If you add the control to your userform
. . . like in case of controls on the userform or userform itself.
What userform are you talking about? I am trying to read a window that...
...vbNullString)
Loop
'I'm looking for this part which I know is garbage but hopefully you get the idea.
Do until IE.Forms(Child_hndl).text like "*download complete*"
DoEvents
Loop
'or maybe some type of API
Do until txt like "*download complete*"
txt = GetWindowCaption(Child_hndl...
What do you mean? I know I will likely have to utilize DoEvents in my code but that isn't my question.
My question is if I know the handle of the IE notification bar is there VBA code or an API I can use to extract the text that is displayed in that bar? DoEvents doesn't do that.
I have written an Excel VBA macro that opens an IE9 window and goes through a series of forms and filters to create and download a report. The final step is to click an element to save the report to my local drive. At that point the report and its URL is created by Javascript on the fly so I...
OK, thanks. That should work for this section.
But there are multiple parts to my code and one of them uses a variant array. Same issue there. WHen Iread the currency values into the variant array, the values change. I can't use currency for the whole array so how can I get proper accuracy...
...= fso.GetFolder(Sourcefolder)
For Each f In fldr.Files
sharepointFileName = sharepointUrl & f.Name
If sharepointFileName Like "*.txt" Then
Set tsIn = f.OpenAsTextStream
sBody = tsIn.ReadAll
tsIn.Close
Set xmlhttp =...
I need to be able to replace a text file to an existing folder on a Sharepoint site using VBA. Due to network admin constraints, I can not use a shared drive solution and the site itself requires a username login and password.
When I search the web (and this site) the solutions tend to be...
Again, this is your problem right here:
If MsgBox(Prompt$, vbYesNo + vbQuestion + vbMsgBoxSetForeground, "Check for Attachment") = vbNo Then Exit Sub
Exiting the subroutine does not cancel the send event, it just leaves the rutine that is run before sending it. You need to cancel the event...
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.