excel

EXCEL Formula not auto updating! Help!

萝らか妹 提交于 2021-02-11 18:14:53
问题 I have an excel formula to pull the name of the file in excel and put it into a field. The problem is, when I open multiple files I've already done, it repulls the file name and updates it to the LAST file opened. So if I opened MFULTON and then JADAM, the file name cell for JADAM would real MFULTON. If I manually double click and press enter, it will auto correct back to JADAM, but my colleagues won't know how to do this. What is happening? 回答1: Uou need to make your formula Volatile 回答2:

Checking file names in a directory with entries in an excel spreadsheet; What am I doing wrong?

天大地大妈咪最大 提交于 2021-02-11 17:58:45
问题 I'm attempting to write a PowerShell script (my first ever, so be gentle) to go through all the file names in a directory and check if they exist in an excel spreadsheet that I have. If a file name does exist in both, I want to move/copy that file to a new directory. Right now it runs with no errors, but nothing actually happens. So far I have: #open excel sheet $objexcel=new-object -com excel.application $workbook=$objexcel.workbooks.open("<spreadsheet location>") #use Sheet2 $worksheet =

Submitting form and reading results using Excel VBA and InternetExplorer

家住魔仙堡 提交于 2021-02-11 17:52:49
问题 I'm submitting a form using Excel VBA while using an InternetExplorer object. Once submitted, I can see the URL change on screen. However, when I attempt to output the URL (to confirm that it changed and the code knows it), I get the same URL. In both debug statements below, they output the same URL. Code: Dim username As String Dim password As String Dim server_ip As String username = "aaa" password = "bbb" server_ip = "ip_here" Dim ie As New InternetExplorer Dim doc As HTMLDocument Set doc

DataTables Excel style based on cell class

北城余情 提交于 2021-02-11 17:49:32
问题 I'm using DataTables plugin to export a monthly calendar view; I need to set a cell style inside the excel file based on the class of the corrisponding cell in the DataTables calendar view. I know how to style the exported excel file using the customize: function( xlsx, index ) {} however I'm not able to find, in the examples I saw on the forum, a way to set the style of the excel cell based on the class of the corrispondig cell in the DataTables view. I have created my own xml style like

Nested IF and ISBLANK formula

喜你入骨 提交于 2021-02-11 17:48:23
问题 I need help with a nested IF and ISBLANK formula. Here is the scenario: There are three columns: A, B and C. All three are dates. I want to retrieve the value of column A in column D (direct value). if Column A is blank, retrieve Column B value, if Column B is also blank retrieve Column C value. Addition to this if column A has year 2015/2016 consider that cell as Blank and retrieve Column B/C. How do I tackle this scenario? 回答1: For your first bit: =IF(ISBLANK(A1),IF(ISBLANK(B1),C1,B1),A1)

adodb execute sql command timeout

无人久伴 提交于 2021-02-11 17:27:27
问题 I have this code below and it is hanging on me. It worked fine for several files...but it is now hanging on me and times out with error (-2147217871:Query timeout expired). 'This is what it looks like in SQL Server when I print the string in the immediate window: BEGIN TRAN; INSERT INTO [dbo].[XLSHdr] WITH(TABLOCK) ([HdrID],[TabName],[FileHyperLink],[FileName],[DocumentType],[EmailID],[Subject],[SentDate],[AttachmentName],[TextFileLink],[DateReceived],[Vendor],[ContactName],[ContactNumber],

Cancel Option GetOpenFilename(Multiselect:= True)

為{幸葍}努か 提交于 2021-02-11 17:21:59
问题 I have the following question: when I use the GetFileOpenFileName option with Multiselect = True it returns the results as a Array if I selected one file or more, but if I click "Cancel" it returns as a boolean vartype. What should I do to avoid the error 13 "Incompatible Type when someone clicks it. Besides, I already tried to test if(vartype(filename) = vbBoolean) then or if(filename = False) then to exit sub, but the first one I took the same error and the second one it said that I'm not

Moving files to another directory

老子叫甜甜 提交于 2021-02-11 17:19:45
问题 I am trying to move several thousand documents from a list in one column and then move them to the folders listed in the other column, and then finally a third column with what has been moved and what hasn't (there will be errors where the file doesn't exist. I know how to do it on a file by file basis as below: How do I do it for the whole columns though? Sub Copy_One_File() FileCopy "C:\Users\Ron\SourceFolder\Test.xls", "C:\Users\Ron\DestFolder\Test.xls" End Sub Sub Move_Rename_One_File()

Pass Python Argument Through VBA

本秂侑毒 提交于 2021-02-11 17:08:41
问题 I have written a python script that needs to be called using VBA. I have written a python script that can parse through a pdf, store the data I need in variables, and write to a pre-made excel sheet to fill in the cells with those values. I have successfully been able to call that script and run it using the following code: Sub RunPythonScript() 'Declare Variables Dim objShell As Object Dim PythonExe, PythonScript As String 'Create a new Object shell. Set objShell = VBA.CreateObject("Wscript

Pass Python Argument Through VBA

点点圈 提交于 2021-02-11 17:07:39
问题 I have written a python script that needs to be called using VBA. I have written a python script that can parse through a pdf, store the data I need in variables, and write to a pre-made excel sheet to fill in the cells with those values. I have successfully been able to call that script and run it using the following code: Sub RunPythonScript() 'Declare Variables Dim objShell As Object Dim PythonExe, PythonScript As String 'Create a new Object shell. Set objShell = VBA.CreateObject("Wscript