How To Make VBA Codes Available To Other Excel Files
Dec 6, 2012
i have an excel file(master copyvba.xls) in which i have my vba codes. My problem is that each time i open another excel file ,my vba codes does not work. I must open my master copyvba.xls to enable macros in my other file.how to make the vba codes available to my other excel files ?
I have 22 CSV files. I want to search each of those files for a specific text string (ie: "profile" or "description"). When the macro finds the word in any one of the CSV files I want it to copy that complete csv worksheet and paste it into an excel xls file.
how I can go about doing this. Not also that while vlookup is possible, its very time consuming if i have to do this 50 times over and each time the csv files have different file names. that is why i want to search within a file (each file has its own unique identifying text string)
Is there a formula where I can take a zip code, and for any zip codes that have the 4 digit zip code extension, to remove those 4 digits, and to add a zero to the beginning of any zip codes where the zero was cut off. Is there a formula I can run my zips through to do both of those tasks?
I would like to list all files in a directory (display the full path) and make hyperlinks to all listed files at the same time.
I came accross the code below which works well for files in a directory:
Sub HyperlinksToDirectory() ' puts hyperlinks to each of the files in a directory of your choice ' into the active sheet starting at the active cell Dim stDir As String Dim stFile As String Dim R As Range Set R = ActiveCell stDir = InputBox("Directory?", , Default:=CurDir()) stFile = Dir(stDir & "*.*") Do Until stFile = "" R.Hyperlinks.Add R, stDir & "" & stFile, , , stFile Set R = R.Offset(1) stFile = Dir() Loop R.CurrentRegion.Sort key1:=R, order1:=xlAscending, header:=xlNo End Sub
I've got many file (one file for one month) and number of records are nearly 65K for each month. So i must separate data for each month in one files. As the result, I;ve got so many files that i must generate report from. how can I generate privot table from many excel files with the same database structure.
Bar codes would contain a part number and a quantity.
822808 / 1604 pcs
1st question: I have scanned them into excel, but how does the next scan get into the next cell? It is currently putting multiple scans into the same cell.
2nd question: Can the data be broken up into separate columns? (e.g. Column A = "Part Number", column B = "QTY") I know about text to columns, but I think I have to get the format right?)
if I have one cell that ive enlarged to half the sheet.... and it is effected with rollover hyperlink so that when I hover over other cells. it turns different colours..
is it possible to make that cell open up different files using the double click event depending on the colour it currently is?
i.e. if its blue, open file1. if its yellow, open file 2 etc
I need to calculate out the loan amount of approved loans by week (weekending on Sunday). For example for the week ending December 28th, 2013
$1,234,567,890 in total loans
I also need to have a list of sums of the loan amounts per code types of approved loans. For the week ending December 28th, 2013
$123,456.00 in total loans for Code: LTV/TLTV > Guideline max $987,654.00 in total loans for Code: FICO > 10 pts below Guideline min
I need to ignore any loan amounts and codes for any loans that have not yet had a approved date entered and also ignore all loan amounts for any loans that are denied. I have tried doing this in many different ways with Pivot Tables and I am not getting the results I need.
I'm trying to convert various codes from one column of an excel spreadsheet into different codes in another column. I was able to accomplish this with "If" statements, however I'm only able to string together seven of these statements in one command. Is there a better way to add formulas for more than seven conversions? Below is a copy of what I've done so far with the seven converts:
I'm having difficulty trying to get the second file appended to the bottom of the 1st imported file. I get "run-time error '13' type mismatch". There is no difference between the two files. I'm thinking there is a problem with my range statement in the second file import, but this range works fine in other macros. Here's my code so far:
I am using Excel 2011 on a mac. I have a selection of data that lists a repeating code (say group 1, group 2, group 3 etc)and a value (-1,-2.3,3,6 etc) and need to find a quick way group together all the codes and next to that a value that counts how many values who share the same code hold a value greater than -1? I can do this myself in a pivot chat with count totals but my issue is how I can show the number of codes greater than -1.
Attached is an example of the data I want to sort.
I call prospects to generate business. I want to respect their time by calling before 8:00 PM so I need to know their time zone. I have a column in Excel that lists their area code, but I don't know their state.
I have tried everything imaginable to duplicate the results of the previous post to no avail. I'm using Excel 2011 on a Mac.
I'm using =VLOOKUP(B2,$I$2:$J$364,10) for my formula, where
B2 is the area code $I$2:$J$364 is the range where the area code/time zone data lives (I = area codes, J = Time Zone) 10 is column J, i.e. the Time Zone column that "feeds" the answer.
I've attached a screen shot to show what I'm doing.Screenshot at Feb 05 15-33-01.jpg
I is it possible to convert all comma separated text files in a single folder in to excel files. But the requirement is to have 2 sheets in each new file. first to be the full file - with all columns, and in the second sheet to keep only colum A B D G H K L M O P R S T V W from the first sheet. The second sheet name must be the same as the first one but without the first "wlist_" in the name.
One more thing. The third column in the second is called "COUL". there are short letters for colors in french
can they be converted with the sort in English like it goes:
NO = B BA = W RG = R SO = P JA = Y BE = L VE = GY GR = G VI = V MA = BR BJ = TA OR = O
Here is a link to the both CSV and an example excel file with the end result. In this example i haven`t change the shorts for the colors. It takes me too much time with the find and replace function. And at the moment i`m really pushed from time.
i have many excel workbooks in a folder i want a macro that will get the names of all the files and make the file names so extracted as a hyperlink to open the files.
I have some daily text files in a folder (so about 30 of them each month), which in the end of month, I need to open them up in excel, format them so that I can use the information for my analysis.
I would like to create a macro, to quickly open them all up at once and save them each individually in .xls or .xlsm format.
I am new to VBA and after some research online, I was able to have the files open with the following code. but now I don't know how to proceed further to save them one by one with the same name but in .xls or .xlsm format.
Sub Opentxtfiles() Dim MyFolder As String Dim myfile As String
Value is actually $12.96777 which rounds up to $12.97 - how can I make excel stay at 12.96? (Round down?)
$402 billed hours, divided by 31 days.. $12.96777 – when the decimal places are removed to xx.xx, the values is rounded up to $12.97, is there a way to stop this from happening..
How to make a fillable form in excel that will save the entry into another sheet and serves as a database.. like for example i have an invoice form after i enter all the data it will print and automatically save to the database.
i want to make a dropdown list from excel 2007. I try data validation then allow then list then source but i cannot make the sheet 2 as the source of my dropdown list in sheet 1. i uses excel 2007 and my OS is XP.
I recall a few years ago that I located a program that allowed me to create an Excel spreadsheet and share it with others, but that locked the spreadsheet after a given period of time. I need to create a spreadsheet, but I want to put a time frame on it which requires users to request an access code from me every so many days. I don't want users in my business to be able to take the spreadsheet and use it should they leave the company. I know there was a subscription program that allowed me to do this, but I can't recall the name of it. It also allowed Excel to hide all of the formulas, even though the calculations worked.
how to make VBA code work in all workbooks. I created a new module in my PERSONAL.xls file, and added the code, but the code does not work when I open a new workbook. Using Excel 2007.
The problem when I insert a raw in the middle of the table the condition formatting is not applied. How can I make excel carry over the conditional formatting?
The only reason I formatted the data in a table because it'll automatically control alternating row background color when insert rows.
Is it possible to make excel template work only on 1 computer by giving any vba password (on lines of license number).
Aim is to ensure it works on only client computer, even if template is shared outside it becomes useless.(We often see clients audit team getting access to templates using it for thier purpose & distributing).
In same spirit what are best practices one can take like protecting formulas with password etc
I'm looking for a macro or function/formula to list & total a range of column widths. Having lots of columns with varying widths t'would rather not have to do it manually from each column's Properties.
Excel 2010.I'm using this code to print user's accessing a file:
[Code] .....
However as someone could just delete the printed user log in the Sheet2, and also you can't use this if you protect the sheet, which defeats the purpose.
I want it to print the log into a separate file. Can I add in the file path/name to this code somewhere?