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 ?

View 2 Replies


ADVERTISEMENT

Search CSV Files For Word & Make .xls Files Of Them

Jan 23, 2008

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)

View 2 Replies View Related

Excel Formula For Cleaning Up Zip Codes

Mar 18, 2013

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?

View 1 Replies View Related

List Directory Files And Make Hyperlinks To Them

Dec 3, 2006

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

View 9 Replies View Related

Make Privot Table From Many Data Files

Aug 6, 2005

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.

View 8 Replies View Related

Scan Multiple Bar Codes To One Excel File

Nov 5, 2013

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?)

View 3 Replies View Related

Excel To Calculate Distance In Miles Between Post Codes

Oct 22, 2011

Excel to calculate distance in miles between post codes

Is there anyway of doing this?

View 4 Replies View Related

Excel 2007 :: SumIf (total Value) For Supplier Codes

Feb 6, 2012

Column O is a list of unique 1000 supplier codes

Column G is a list of 75000 imports (dollar amounts), each row has a supplier code.

I want to have a formula in Column P to sum the rows where the suppier code equals the supplier in column O.

i thought this was easier in 2007.

View 3 Replies View Related

Make Cell Open Different Files Depending On Its Fill Colour?

May 27, 2014

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

View 4 Replies View Related

Excel 2003 :: Get Sums Based On Codes In Dropdowns By Week?

Jan 24, 2014

I am using Excel 2003.I need two distinct sums:

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.

View 1 Replies View Related

If Statement Limit Workarounds: Convert Various Codes From One Column Of Spreadsheet Into Different Codes In Another Column

May 5, 2006

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:

=IF(ISNUMBER(SEARCH("WARN",J2)),"Warning",IF(ISNUMBER(SEARCH("PSSNAP",N2)),"Sales",IF(ISNUMBER(SEARCH("WARN",L2)),"Warning",IF(ISNUMBER(SEARCH("2699",L2)),"Warning",IF(ISNUMBER(SEARCH("4004",L2)),"Warning",IF(ISNUMBER(SEARCH("2036",L2)),"Warning",""))))))

I want to add about 15 more codes to convert within this formula but it's maxed out in the format I'm using.

View 3 Replies View Related

Using Macro To Import Two Identical CSV Text Files To Make 1 Table Of Data

Apr 4, 2014

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:

Range("A1").Select
With ActiveSheet.QueryTables.Add(Connection:= _
"TEXT;\server1usersmydataIMPORT1.CSV", Destination _
:=Range("$A$1"))
.Name = "IMPORT1"
.FieldNames = True
.RowNumbers = False

[Code] .........

View 7 Replies View Related

Excel 2011 :: Analyzing List Of Repeating Codes With Values Greater Than -1?

Feb 4, 2013

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.

Example of data that needs sorting.xlsx

View 1 Replies View Related

Excel 2011 :: Assigning Time Zones To List Of Area Codes?

Feb 5, 2014

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

View 3 Replies View Related

Convert All CSV Files In A Folder To Excel Files?

Apr 8, 2014

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.

[URL]

View 9 Replies View Related

Create List Of All Files In Folder And Make List Hyperlinks To File?

May 17, 2013

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.

View 1 Replies View Related

VBA Open All Text Files In Excel In Folder And Save Them As Excel File

Dec 7, 2013

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

[Code].....

View 2 Replies View Related

How To Make Excel Not Round Up

Aug 20, 2014

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..

View 6 Replies View Related

How To Make VBA To Use Excel MONTH Command

Apr 17, 2013

where i'm going wrong with this?

If ThisWorkbook.Sheets("Obs Sheet").Range("C" & Counter).Value (=MONTH(TODAY())) Then

I'm not sure how to make VBA use the excel MONTH command.

View 3 Replies View Related

How To Make Fillable Form In Excel

Sep 14, 2013

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.

View 9 Replies View Related

Excel 2007 :: How To Make Dropdown List

Apr 3, 2014

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.

View 4 Replies View Related

Excel 2003 :: Make A Conditional Design For A Row?

Jan 20, 2013

I'd like to make a conditional design for a row. If a certain cell equals "x" I'd like to color the whole row with grey My version of excell is 2003

View 7 Replies View Related

How To Make Excel Spreadsheet Access Expire

Feb 15, 2014

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.

View 2 Replies View Related

How To Make TAB Appear In All Excel Created Using CustomUI Editor

May 14, 2014

I have made TAB using Custom ID Editor but it is available in particular file how to make appear that TAB in all excel ?

View 3 Replies View Related

Make Excel Hide Cells Containing Certain Text?

Sep 24, 2011

Is it possible to make excel hide cells containing certain text?

View 6 Replies View Related

Excel 2007 :: How To Make VBA Code Available In All Workbooks

Nov 1, 2011

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.

View 4 Replies View Related

How To Make Excel Carry Over Conditional Formatting

Mar 27, 2013

Conditional formatting format: Boarder - bottom boarder

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.

View 4 Replies View Related

How To Make Excel Template Work On Only 1 System

Mar 9, 2014

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

View 3 Replies View Related

How To Make Excel Report Width Of Columns(s)?

Jan 13, 2010

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.

View 9 Replies View Related

Excel 2010 :: How To Make Macro Print In Other File

Jun 26, 2014

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?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved