Is there a way to reset the defaults for the text import wizard? I occasionally import a number of files in CSV format, but the wizard defaults to tabs as the means of separating the text. I would like to reset the default on the second page of the wizard to commas, not tabs.
I am trying to write a Macro that will alow me to choose a text file to important but bypass the Import Text Wizard when doing so. I used the record macro function to get this
I am using this code to import txt documents, but once the file has been selected and everything, the excel data import wizard shows up... I now would like to get rid of this problem, as well add a standard path to this code, so that I dont always have to start from the desktop and click through tons of folders to get the folder containing my files.
I am pasting query results from WinSQL into Excel and use 'Paste' and then, from the little Paste Options icon, 'Use Text Import Wizard'. I choose tab delimited and then reset the decimal separater using the 'Advanced' button on step 3. Since I do this daily I would like to create a macro to do it all for me, namely paste what I have already copied to the clipboard using the appropriate settings. Recording doesn't reflect the steps I executed. How can I call the text import wizard from vba with the clipboard contents as input as opposed to a text file?
I am importing a text file that has a lot more than 256 columns. The data will be updated weekly with a different text file. I know how to get past the 256 column limit when importing a text file like this. This link explains the method I am using to import the text file. [url] Since I am importing onto several sheets I get the dialogue box asking me to choose a file to import from for every sheet when I use RefreshAll. The same file that is used by the first sheet will be used by the rest of the sheets. Each sheet just imports a different section of columns from the text file. I want to avoid choosing the same file 30 plus times (once for each sheet) when I click refresh all. Is there a code that would allow me to choose the file for the first sheet, and the other sheets would follow suite?
I want "Print what" >> "Selection" (instead of Active Sheet) to be selected by default in the print dialog when I press Ctrl+P. How to do it?
See the image if you don't understand which dialog I'm referring to: http://dl.getdropbox.com/u/872430/print_5.gif
My second question is actually answered in a very old thread. I want to know if there is an alternate way or if the answer in old thread is still valid. The question is "how to set default paper size?"
The answer given in the old thread (http://forums.pcworld.co.nz/showthread.php?t=28637) is by going to Control Panel and changing printer settings. Since, Excel often shows only "blank" (with a dropdown containing the various paper sizes) against "paper size",
I am working with an Excel file that was created in 2001, has not been updated since.
In the first column on the first tab, is a date field, starting from 12/31/2000.
I try to change this to 12/31/2008, and I get the return date of 01/00/00. When I select the cell, the formula bar indicates 12/31/2008, but the cell shows 01/00/00.
If I change it back to 12/31/2000, it is back to normal. I tried to enter 2/3/2009 in another cell, converting to date format, and the same thing: 0/1/00 (Jan 0, 1900)
I have user form that I want to get rid of the close button that appears as an x in the upper right corner. Is there a way to have this not show when the form comes up ?
I've created a worksheet that uses multiple print macros with defined margins. This works fine with the Epson printers I have, but a user has an HP Officejet Pro K550.
This printer has an option named "Minimize Margins". If this option is checked then you adjust the margins the way you want.
For some reason when this particular workbook is opened you have to manually go and check this option so that the margins can be manipulated. this is a problem b/c my macro prints several reports so it's impossible to set this option.
I then opened a different workbook and it accepted the default setting (option checked). For some reason the workbook I created doesn't.
I have this problem with pivot tables:when I write a formula relating to a cell in the pivot table I don't get the usual basic cell refs (e.g. B4/b5) but I get something like GETPIVOTDATA("Vehicle No",$A$3,"Model Desc",...... etc etc
and I cannot copy and paste this formula!
I would like to know if there is a shortcut to use basic Cell refs because it is very boring always type the cell details in manually when using data from a Pvt table
Some weeks ago I had to move from excel 2000 to excel 2003 and It seems incredible to me that moving to a more recent release of excel become a step behind....
We have just refreshed our entire printer fleet to Xerox printers and as part of the project we have selected all defaults to B&W and duplex.
On a multi sheet excel file, If we click print then choose entire workbook and then change the print options to colour, it prints the only first worksheet in colour, and all the others in mono. i have read that excel treats each worksheet separately and does not cascade the changes made made in the first worksheet even if all sheets have been selected.
How can I get them all to print in colour?
We can set up another printer and change the defauts to colour but we dont want to go down that road and have 2 printers installed for each model.
Is there any code out there can will/ can change the properties of the first worksheet and cascade this throughout the workbook.
We use XP and W7 workstations and office 2003, 2007 and 2010. By the end of the year all workstations will be W7 and Office 2010.
I'm using the conditional sum wizard to gather the cost of some projects based on two other conditions: Column 1 is Country Column 2 is Cost Column 3 is Category
I have sucessfully used it with several countries but after sucessfully returning the correct resultsa for 5 countries it says "The formula you are building is too long. Please specify fewer conditions" - The amount of conditions is the same as the sum just before it which worked fine!!!
How do I setup a STARTUP WIZARD in EXCEL which allows user can input information, and these information will be stored in the excel worksheet automatically.
The startup wizard is defined as a window which will pop up automatically when you open the Excel document. The wizard contains forms.
I have the dupe wizard add on, on my excel program. I am wondering why when I click on the Dupe Wizard button a message in a dialog box pops up saying 400. The Dupe Wizard application will not do it's job now, only the dialog box saying 400 pops up.
I am trying to create a formula in the Conditional Formatting wizard.
I would like the formula to format B2:F2 in a particular way if a count of the number of values in this range equals 5 AND if all values are less than or equal to 25.
I have tried with following formula without success:
I was reinstalling office on a laptop where the hard drive had been replaced. I used the 'save settings, wizard on my desktop and put in the new settings when I reinstalled Office.
This almost worked, but not quite.
Word and PowerPoint seem to be fine but when I reopened Excel I got a number of messages saying that objects could not be loaded because they were not on the machine. Some of this was because Excel was trying to reference add-ins that needed to be reinstalled. I have done that, and there are now fewer messages - but there are still two and I can't get rid of them. One looks for 'objects' the other a single 'object'. There seems no way of finding out what the objects are in question, and what it that Excel is stumbling over. Can I do anything other than abandoning my previous settings and starting again, or else living with having to click twice every time I start excel to get rid of the messages?
I have tried uninstalling Excel and reinstalling but this doesn't help. Perhaps registry changes are the problem...and I hate the registry.
I'm wondering if it's possible from a button placed on a userform to call the pivot wizard and then create a pivot table, which is then saved and imported into my form ??
im building a user registration form in excel now i realy would like to have a search form within my wizard but i cant get it done. i have read some other articals relating to this but they dont do multiple field search (like day of birth and telephone numbers etc) the form i would like to have should do a search for exmp. by phone number but than also displays all other corresponding user info in the results
the xls file included has some advanced features like automated building of commandbar menu's and has mailing features (currently quoted out) + build in timer events + on close auto save + allot.
I have created several userforms within my excel spreadsheet and i want to be able to click a command button on one form which will then hide the current form and show the next form. In previous spreadsheets i have used the following:
Private Sub CommandButton1_Click() Form1.Hide Form2.Show End Sub
However, i am having trouble with this spreadsheet as when i am typing my code after the Form1. the hide command (and show) does not appear in the little pop scroll bar that predicts what command you plan to use. (If i type it regardless then it doesnt execute)
What is even stranger is that if i write a sub routine in a module such as:
Sub Test_Form() Form1.Hide Form2.Show End Sub
And then call it:
Private Sub CommandButton1_Click() Call Test_Form End Sub
i'm trying to build an app that'll take a user through 5 or 6 steps of a process, with maybe 2-3 substeps in some steps. right now i'm currently using a multipage Userform , but all the tabs make the whole thing look cluttered (even when there's a "Next" button in plain sight). this is especially because i've put each substep as a multipage form under that step's page (multipage forms inside a multipage form). so steps 1-5 would each have their own pages (1-5), then in page 1 you'd have another multipage form (1.a. - 1.c.). is there a way to make it look simpler? i'd like it to look a bit like a Wizard (ie remove all the tabs), but the only way i can think of is to throw a whole heap of controls on one page, and turn them visible/invisible each step of the way.
I have a table of data as below recording daily foreign exchange rates.
Column A = Time and date Column B = USA Column C = UK Column D = Aust. Column E = Japan Column F = Euro
Time and date USA UKAust.JapanEuro 04-Jan-20060.68390.39180.924379.470.5693 05-Jan-20060.68660.39050.918779.720.5666 06-Jan-20060.68710.39150.919579.720.5675
Then in column H i have a formula that works out if the rate has exceeded a specified base rate, if it has i display Threshold Exceeded and if it hasn’t i display No Action Required.
OK from here i want to count the number of times in the month the Threshold has been exceeded. I can do this by using the countif formula.
Now this is the section i need help on
For a specified time, say a month, i want to count the maximum number of times the Threshold has been exceeded consecutively.
I'm attempting to import around 200 (and growing!) separate text files into Excel. I am using the formula below to import the text file and then using a separate macro to select the information I need, copy it into another spreadsheet, and then run the import macro again.
However, I have a problem in that my import macro gives me 'Run-time error '1004:
Application defined or user defined error''. At first this wasn't a problem as the information is pasted into the spreadsheet despite the error anyway. However, now that I am looping the macro it is obviously causing more problems as it prevents the loop. I would really appreciate it if anyone knows of a work-around or can spot an error in the coding to resolve this!
The code below shows is for the import macro only:
Sub ImportTextFile(FName As String, Sep As String)
Dim RowNdx As Long Dim ColNdx As Integer Dim TempVal As Variant Dim WholeLine As String Dim Pos As Integer Dim NextPos As Integer Dim SaveColNdx As Integer
why my drop down list defaults to the middle of the list when first clicking on the arrow that opens the list? I created an alphabetical list of all US airports but when I open the list, it starts at "D" instead of "A" which is the top of the list.
I have a workbook with 20 worksheets the first is a summary called Discount Set the 19 sheets with various names
The 19 sheets in column H4:H40 u enter a number greater than 0 which is the quanty required. This is used to calculate a price on which ever row it is entered
the selection must only affect numbers as there are rows that are just shading and they contain no data .
So u could enter quanties on serval rows of different sheets to get a total price displayed in the Discount set
What I want to do is have button on the Discount Set which will clear any quantity that does not equal 0 back to 0 in column H which will reset the total 0.00
I have written a VBA program and using in Ms.Excel. The problem is when I try to write the VBA function through the function wizard it works but when I write the function in excel worksheet cell, it doesnt execute. I do not now the reason.