Excel Macro Vs. Non-Macro

Dec 18, 2009

is any kind of rule of thumb about from what point is it useful to use macros, and until when one should not use a macro (e.g. only nesting Excel commands/formulas)

View 9 Replies


ADVERTISEMENT

Excel 2003 :: Macro To Open Folder Then User Selects File Then Macro Continues To Run

Nov 6, 2011

I use Excel 2003 at work. I'm looking for some code that will Open a folder and then lets the user to select a file then continues to run the macro.

The file name they select will look similar to this K2271011.504 or K3011111.201

View 3 Replies View Related

Run Macro In All Excel Macro Enable Workbook

Jan 27, 2014

I want to run a welcome macro in all excel workbooks. Whenever I open any macro enable workbook the welcome macro should run.

View 9 Replies View Related

Excel Macro Cannot Run The Macro Combobox1?

Feb 23, 2014

I have an excel sheet and I have 2 module in it. First modul (Module 1)controls the second sheet scroll-bar and its working.

Bu my second module (Module 2)controls first sheet. When I run the excel it works and when I try to select dboHasarMiktar_Change combo box I get

error as; "Cannot run the macro dboHasarMiktar_Change." the error info dialog boz has okay button. When I click okay excel works but I am keep getting this error. I also save my excel as *.xlsm format.

First I try to create dboHasarMiktar_change and I left alone than I goto and create dboBirYil_Change. I run it it works without error while VBA editor is open.

Then I delete dboHasarMiktar_change function and save it. When I run vba editor open or close I get above error. I set all macros to be fully trusted, and I still can get the error. The 2 sheet all the cell not locked, but I protected 2 sheet.

Here is macro code.

[Code]....

View 1 Replies View Related

Excel Macro To Add A MACRO In WORD?

Nov 16, 2011

if there is a way in VBA to copy a macro from range of cells in Excel and insert it into the normal module in word? I have a macro in excel that copies cell's, paste them into word and then calls a macro in word which does some find and replace functions. Users have to manually add the word macro and I was hoping they could just click a user button and it would automatically open word, add the macro and close it.

View 8 Replies View Related

Excel 2010 :: How To Save Excel File As Cell Reference Using Macro

Mar 5, 2012

I have created a macro in excel 2010 which enable the file to save (extract) data into separate location and name. The vba code for macro is as follows: Question: How can I save this workbook with reference to the value containing in cell B2? (it is named temporary now - as defined in the code)

Sub aaa()
'
' aaa Macro
'

[Code].....

View 1 Replies View Related

Excel 2010 :: Macro To Change Excel Formatted Table Name Dependent On Number Of Loops

Jul 9, 2012

Recorded macro. The hope is to insert a excel formatted table a set number of times. I have found a loop code that references a Cell A1 and repeats that amount of times. So if A1= 10. There should be 10 tables inserted. However on the second time there is a fault with the table name. I need the name to change each time the loop is run. ie Table1, Table2, Table3 etc up until the loop stops (A1 contents).

I am using excel for windows 2010. The macro that i have so far is below.

Sub LoopTest()
Dim n
Dim V
Range("A1").Select
V = ActiveCell.Value

[Code] ........

View 1 Replies View Related

Adjust Macro From Excel 2003 To Excel 2010?

Apr 1, 2014

I am trying to adjust the below macro so that it will work in Excel 2010.

Sub OpenAndProcess()
Dim fs As FileSearch
Dim I As Integer

[Code]....

View 3 Replies View Related

Macro To Convert PDF To Excel Data To Excel Format

May 23, 2009

Is there any macro that can be used to convert data which have been converted from PDF to Excel. Currently I'm using a traditional way by pressing F2 and enter to convert the data to excel format. It's tedious ( since the data range is quite big) and crammed my finger.

View 9 Replies View Related

How To Repeat Excel Macro

Apr 19, 2014

How to repeat excel Macro?

View 11 Replies View Related

Macro For Word In Excel

Dec 10, 2008

I am trying to do the following:

I am creating an order checklist in Excel. I want it that if the sales rep clicks on a certain field that a macro will populate the form that is needed. If the rep does not click on that box then the certain form will not be populated. Is this possible?

View 14 Replies View Related

Use Of Transpose In Excel Macro

Jul 31, 2012

I am receiving the results of a Web-based test via e-mail. I am able to paste the e-mail's contents into an Excel spreadsheet and use it to manipulate the data as necessary, with one exception, namely an answer that requires the test taker to write a multi-paragraph e-mail response. I am able to identify which cells in Column A this answer occupies, for sake of argument, A60 to A70.

I want to have the contents of these cells appear in a single cell, B60, with linefeeds.

I'm able to do this with the following macro:

Code:
Sub paste()
Range("indirect(i5)").Value = vbCR & Join(Application.Transpose(Range("indirect(e1):indirect(e2)")), vbCR)
End Sub

where the indirect functions refer to cells where I've identified the beginning and ending rows of the range of cells I want to combine. I've also concatenated an additional vbCR to insert a leading carriage return, desirable for cosmetic reasons.

With an interactive button on the spreadsheet to activate the macro with a single click, it's pretty nifty.

Now, I have run into a problem when indirect(e1) and indirect(e2) have the same value. In that case, the macro fails. How do I recode or work around this?

View 1 Replies View Related

Transpose Macro In Excel

Oct 15, 2012

Full Document (2)
A

2
24 IP LAW GROUP FRANCE

3
48 rue Saint Honor

4
75001 PARIS

[code]....

I have many data in above format. I need to put it in columns. Also there is NO uniformity in rows. The data consists of Company name, Address, Tel no. Fax no., email and contact names and in some cases website also.

So when the data is transposed into columns, due to non uniformity the data gets jumbled. PColumn headings as Company name, Address, Tel no. Fax no., email, website and contact name.

View 4 Replies View Related

Excel Formula To Macro Code

Aug 5, 2012

I have an excel formula that needs to be converted to macro code. Here is the excel formula->

VB: =MID(A2,FIND("http:",A2),FIND("javascript",A2,FIND("http",A2))-FIND("http",A2))

View 6 Replies View Related

How To Send Files Via FTP With Excel Macro

Sep 22, 2012

I want to send via FTP to a linux server the following.

1- All files that are named checked.XXX.YY.mtc to path /var/docs
2- All files where the name begins with checked.conf to path /etc

PD: I have the IP address, user and password of the server.

View 1 Replies View Related

Conditional Macro When Excel Opens?

Sep 28, 2013

I want to run a VBA macro when Excel opens if and only if the file name contains a specific string or if and only if the worksheet name contains a specific string. The file only contains one worksheet. For example, if the file name contains the string "SalaryData" or the sheet name contains "SalaryData", then I want to run a VBA macro to delete some of the confidetial information. Idealy, this would be done as the file is opening before it is displayed.

View 1 Replies View Related

Excel Macro For Copying Row Onto Another Tab If Cell Has Certain Value?

Jun 27, 2014

I am trying to write a macro to do the following. I have data validation list in column G which will come back as either "Closed" "Pending" or "Completed". What I want to happen is when anyone changes a value in that column to "Closed" or "Completed" I want to cut the entire row (Columns A-G) and paste those rows on the "archive" tab which exists in the same worksheet. Then on the main sheet, I then need excel to shift the contents of the row beneath the row that was just cut up to fill in the blank row.

View 4 Replies View Related

Insert Name Of Picture In Excel VBA Macro

Apr 18, 2014

The following macro enables be to insert picture from a given location. My query is I want to insert the picture name once the pictures are inserted in the excel worksheet.

[Code] .....

View 3 Replies View Related

Display Folder Name In Excel - VBA Macro

May 19, 2014

I need a macro which displays the folder and subfolder name from a specific path in the column A of the excel sheet in the same heirarchy. Also whenever a sub folder name is displayed in column A, I need its main folder name to be displayed in the same row Column B i.e offset(0,1). I have a macro, but it displays the folder name in the 1st cell of column B, I need it to increment to the subsequent cells based on subfolders.

Sub Step1()
Dim startRange As Range
Sheet1.Cells.Clear
Set startRange = Sheet1.Range("A5")
'Parent Directory - Change this to whichever directory you want to use
ListFoldersAndInfo "C:desktop", startRange
End Sub

[code]......

View 3 Replies View Related

Excel Macro Save As Cell Value?

May 28, 2014

i have a macro which copies data from each line, based on the row info copied.The current code i have is as follows:

Sub Macro1()
'
' Macro1 Macro
' Keyboard Shortcut: Ctrl+r[code].....

View 3 Replies View Related

Macro To Append Excel Files

Aug 22, 2014

I am absolutely new to VBA and trying to create a macro for work. We get daily files with almost the same headers that needs to be consolidated at the end of every month. The headers on the files are usually the same, except at times an extra column may be added at the beginning.

I need a macro to do the following-

Prompt to select the desired files.

Read the headers and append only the desired header columns from these files to a master file(these are Account, User, Modified By, Version). The headers are present in row A. Also, the master file should select the header from the first file only and hence take only the data (row B) from the second file onwards so that the headers are not repeated in the middle in the master file.

In the master table, add a new column at the end which will be the name of the file.

In the master file generated, filter on the column "Version" and delete all the rows except Version="1.0"

Lastly, there are certain values in the excel files that need to be changed. So I need a replace function to change those values.

View 2 Replies View Related

Run SQL Queries In Excel Against Database Using Macro?

Jan 29, 2014

I have sql queries in spreadsheet column and which needs to run against Db2 database daily and then update the result back to spreadsheet. This is tedious process and could there be a way to create a a macro using VB which performs the following?

1. connect to db2 database

2. take the sql query one at a time from every row and then run against database

3. Obtain the result and then update it back to last column of the spreadsheet.

View 3 Replies View Related

Macro For Getting Cell Value From Excel File

Feb 11, 2014

in my directory there are lot of excel files are available with same structure

i need if i select a file then i need to copy cell c14 vlue from that file and paste special (because c14 values are equations) it to current file. how can i do?

View 7 Replies View Related

VBA Macro To Copy Schedules In Excel?

Feb 12, 2014

What I'm trying to is a .vba macro to run a copy of my team agents' schedule day by day on a different screen. There is an existing excel with different sheets, and the sheet I need to get is the one detailed day by day ('planning detaill'), but displaying only the current day. I have already done this part of the macro (attached).

Is there a way to do this with a vba macro?

View 1 Replies View Related

Merge Macro Excel 2007

Nov 30, 2007

The code to merge sheets to a master sheet runs great, however when I copy the code to the Personal.XLSB to have the macro available to use on every workbook I’m getting an error. The line of code is Application.Goto DestSh.Cells(1) and the error is Method ‘Goto of object’_Application’failed. This happen even if I create a new workbook with 3 sheets and only a few cells with information. The macro to mail the sheet works fine using the Personal XLSB.

View 11 Replies View Related

Calculation Using Macro ( MS Excel 2007 )

Jan 6, 2008

I want to do simple calculation using Macro in MS Excel 2007..

All the data is in Sheet1 ( Which is 13a ), the calculation is in Sheet2 ( Which is work ) and the result of the calculation will come out in Sheet3 ( Which is result )..

Here is my coding..

View 12 Replies View Related

How Does Excel Decide What Module To Put A Macro In?

Nov 5, 2008

I just created a macro in Personal.xls and Excel (for no apparent logical reason) created this macro not in Module 1 (which has no macro or anything else in it, it is blank) but in Module 11.

How does Excel decide what module to put a macro in? Why not choose Module 1?

What's the difference between Module 1 or if I cut the macro from Module 1 and pasted it into Sheet 1 of Personal.xls which is blank?

View 7 Replies View Related

Macro For Converting Notepad To Excel

Mar 17, 2009

Could someone please suggest how can i convert all the text which is not in format in a squential format.

Iam attaching an sample of it.

It would be an real help if someone does it for me.

View 11 Replies View Related

Macro Bombs Excel 2000

Jun 1, 2009

I've developed a workbook with macros in Excel 2007 (Compatibility

Mode), Windows Vista Operating System. The purpose of the Macos

is to allow auto complete on a validated data entry field.

The macros run fine on this platform. I then copied the workbook

to my desktop, Excel 2000, Windows 2000 Professional Operating

System. One of the macros is killing Excel on this platform.

View 14 Replies View Related

Data Rearrangement Using Excel Macro

Oct 25, 2009

I'm completely new to the Macro and VBA language and I am struggling to come up with a Macro to rearrange the data structure so that I can pivot table properly.

If you see the attachment Sheet 1 is the raw sample data in its current layout, Sheet 3 is the example that I want the data to be arranged to this layout and Sheet 2 is the current process I manage to get with limited knowledge of macros so far.

Sample file: [URL]......

View 4 Replies View Related







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