I'm trying to open a pdf file from within excel vba. I have tried using the followhyperlink method but adobe acrobat opens very briefly then immediately closes Code: Sub OpenPDF 'Dim pdf As String On Error Resume Next 'pdf file to open pdf = 'K: PDF mypdf.pdf' 'open the pdf file ActiveWorkbook.FollowHyperlink pdf End Sub So then I tried to create an instance of acrobat by setting a reference to the acrobat object but I can't get this to work either! The code I'm using is Code: Sub OpenPDF Dim pdf As AcroPDDoc Dim strPDF As String Set pdf = CreateObject('AcroExch.PDDoc') 'pdf file to open strPDF = 'K: PDF mypdf.pdf' 'open the pdf file pdf.Open strPDF End Sub Any ideas what could be wrong with either approach? Hello, I have a number of different files that I often need to run a macro on. In order for me to do it on the 75-100 files I have at any given time, I need to open one, run the macro, close and save, then open the next one. Is it possible to write a macro that will start with the first file in a folder, open it and update links, run a macro, save and close, and open the next file in the folder until it has open all the files in the folder. I have experience with creating macros that reference different workbooks, but not sure how to go about opening files with different filenames (without referencing the exact filename).
Hi, when I try to open a.iqy file in Excel 2010. The hyperlink cannot be followed to the destiantion. In Excel 2007 (windows XP) I can open/refersh this query without any problems. I think this is only a setting issue, but I don't have an idea what I have to change. Maybe someone can help Thanks and regards Chris. Software that open iqy file - Microsoft Excel Internet query Programs supporting the exension iqy on the main platforms Windows, Mac, Linux or mobile. Click on the link to get more information about listed programs for open iqy file action. Cannot open iqy file excel. Links due 10 Feb 2014 i have 2 ios users using internet explorer win10, office 365 on parallels desktop mac 12. Iqy from Share.
I'd like to be able to have basic code for opening, saving and closing, opening next file, saving and closing, etc. And input the macro I'd need to run in each file in the appropriate location. Is this possible? Any help is greatly appreciated!!
Thanks, Jason. I have a file that became too big due to phantom bloat, unused range saved by Excel and all that kind of reasons. Thank to previous posts on that board tackling that issue, I was able to find how to proceed to reduce the file back to its normal size. But I did so in a beta file (test file).
The real file has become so big (103MB!) that Excel cannot even open it anymore! The file contains archive info that we do not have anywhere else. Is there anyway then to open the file or to reduce its size without opening it (through magics.)?
I just honestly don't know how to retrieve that info before deleting that file. Thank you very much for your help. Hi, I'm trying to get some macros to combine data from two open workbooks, and I can't figure out the commands to switch from the active workbook to the other open workbook and back. I'm new to VBA and just learning the ropes. All I can figure out is how to switch to another workbook with an exact name. If I record the macro to go to a recent file, for example Window 1 (filename), the code that I get in VBA is Windows('filename').Activate. This doesn't translate to when I have two different workbooks with different filenames open.
I'm a bit confused myself. Maybe just a list of basic workbook-switching techniques or commands would be useful. I'm having a problem in a workbook with several ActiveX command buttons. I had been using the form control buttons to run macros, but the boss wanted each button to have it's own, different color. So I removed the form control buttons and created new ActiveX command buttons. I got into the button properties and set the background colors.
I added the Click code to run the macros when the user clicked the buttons. All of the buttons were working fine. Then I saved and closed the workbook and went to lunch. Now when I open the workbook, the buttons don't work! When I click them nothing happens. They appear frozen. They don't even seem to click.
No error message. If I right-click the button in Design Mode and select Properties, I get sheet properties not the button properties. I can't seem to locate the command button properties any longer. I still see the button name 'cmdButtonGetInfo' and '=EMBED('Forms.CommandButton.1',') in the name box and formula bar. The odd thing is if I create a new button it works fine until I save and close the file.
When I reopen the file none of the buttons work. It's like the buttons are being disabled when I close or open the file. Any suggestions? I know this question has been asked a bajillion times, so I apologize for the redundancy. I am working with an Excel spreadsheet and saving it as a.csv file in order to upload to an application that parses out the.csv data as transactions.
The system requires.csv files, so this is how I need to save my doc (with this extension). I have been successful at preventing Excel from coverting that long number into scientific format. I have saved as a TXT file, pasted the longer number and it displays correctly. That is all good.
But I have to save as a.csv. So if I do that, close the Excel window, and then open again (as the.csv file), the numbers are back to being displayed in scientific format. I have tried creating an Excel doc from scratch and entering text in Text format, to see if this created a cleaner file.
But again, the second I save as.csv, close the window and then open that file up again, that dang scientific format is back. Does anyone have any idea of how to work around this? Once I have successfully gotten the numbers to display as the long-chain number, how can I get them to 'stick' so that they don't revert back to scientific format when I reopen the file? Thanks so much for your help! I need help desparately. Last night I spent several hours working on an Excel 2002 spreadsheet and it has disappeared. I saved it routinely as I was making many changes updates etc.
I opened original file -stuff.xls - made changes and saved it as again as stuff.xls. I have done this several times before.
Today, when I go to open stuff.xls, it is nowhere to be found!!!!! I have done a search, for any file modified since Thurs and nothing has appeared. I have checked the recycle bin, this did not go into auto recover nothing of the like. I am just traumatized, because I have NEVER had anything like this happen before. I even thought perhaps I didn't save it as often as I thought, (I know that I did) but I remembered that I saved it at least once and I can't even find an Excel file that has been modified since Thurs!!!
Does anyone have any idea what could have happened to this file?? BTW, I have prayed, rebooted, run spybot, called witch doctor, all with no success. I have never had a file to just disappear with no trace. Any help would be greatly appreciated.
Thanks in advance. Hello, Firstly i haven't used excel to a great extent since my college days. So i'm having to re-learn 99.9% of everything i once new. I am volunteering for a non profit organization and trying to create a reservation system for the rooms that they have - kind of like hotel software, but in excel (i did a similiar thing in college but for plane seats) Please find it attached.
What i need it to do: Copy all of the info from the main page to the guest lit (a new row each time). From the guest list to the Gannt chart - i did a few tutorials on dynamic gantt charts using conditional formatting but cannot get them to work when based on data on a different worksheet. Finaly is there a way to check for availabilty on any given date? If just someone could point me in the right direction, i would be appreciate it so much words can't express!!! Best Regards, Jamie P.S for the calender drop down on the main page, i'm using 'microsoft time & date picker 6.0) - pop ups on this site - same file, better website. I have an excel form, I want my users to be able to open the form, fill in appropriate data, then click the save button. When the button is clicked, the data in the form should be saved to a new file and then the original form should be reset (clear all values) for a new set of data entry.
When the data is saved, I want the new excel sheet to be saved to a location specified within the macro so the user doesn't have any options and I want the title of the new file to be the value of one of the cells. I'm new to macros and would appreciate any help this board can offer. Hi all, I've had a long search through your pages to see if this question has been answered before but having browsed through about 50 pages worth of threads I couldn't see anything, but if I am repeating prior information I do apologise. I've written a macro that is relatively simple. It just takes some information in one format, rearranges it, adds some formatting and performs some calculations.
Nothing incredibly fancy but it works fine on my computer. Now, I need to share this macro with some other people, so basically I've just sent that excel file on to the people that need to use it. Should be fine and in most cases it is, however there is one user who although they can open the file, can't seem to get the macro to run properly. It seems to get a small way through the macro but then stop with no error messages or any sign that it hasn't completed properly. I have checked Macro Security level and that is the same as mine, Tools - Add-Ins is the same, In Visual Basic, Tools - References is the same as mine. It is the same Operating system and the same version of Excel.
I have even signed into this person's computer as myself (it's a big company network thing) and tried to run the macro and it works fine, so there is nothing wrong with the hardware. I've googled and searched and tried everything I can think of but I'm no closer to solving this problem, so if anyone has read through this wall of text and can come up with a possible solution, that would be greatly appreciated to save me from tearing ALL my hair out!
Thanks very much for your time.