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
ADVERTISEMENT
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
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
Oct 5, 2009
I'm trying to use the Combobox1.Value as the look up value in my Vlookup formula. This is creating a type mismatch error at the moment.
I've tried both:
HTML ltb1.Text = Application.VLookup(ComboBox1.Value, Sheets("Wk Data").Range("A3:A17"), 2, False)
and
HTML ltb1.value = Application.VLookup(ComboBox1.Value, Sheets("Wk Data").Range("A3:A17"), 2, False)
Will
View 9 Replies
View Related
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
Apr 25, 2014
combobox's.. I have it working as I need it to with Active-x combobox but I need to move to a form method because the Active-x combobox is buggy in the worksheet and has these strange font and box resizing issues which there is no solution to out there.. Something about if you have external monitor or projector plugged in and it using a different resolution to what your native laptop or pc is using.. doesn't make any sense to me and unfortunately I have given up on it.
Problem is what I want doesn't seem like it can be done with form combobox but I will seek your support first before I come to that conclusion.
So using form Combobox, this is my setup:
Combobox1 contains a short list of Teams i.e. ENT,MEL,EMEA,MTVSSL,TSJ -- I am referencing this from the FORMAT CONTROL property Input Range: TEAMS!A2:A6
Combobox2 I need to list the names of the people in those teams i.e. John Doe etc.. I have column with teams as headers and the people in each column in the respective teams. i.e. B1:B16 has the list of people for the team called ENT (B1 is the header "ENT") and B2:B16 is the names of the people.
Problem is I don't know how I can link the two based on selection in Combobox1?
One catch, I prefer not to hard code the names of people in any code, if I can reference from a table or cell that would be better as the list of people within a team will increase over time.
View 8 Replies
View Related
May 20, 2014
I have a problem in populating 2 combo boxes in my excel sheet, where in the later one is dependent on the first combo box.
The source for these 2 combo boxes exists in another workbook in the same sheet.
The sample data is as below
Folder NameWorkflow Name
AUDIT wkf_eval_update
AUDIT wkf_eval_cf_update
AUDIT wkf_eval_correct
EPG wkf_epg_aud_tmplt
EPG wkf_epg_audit
I have created two dynamic named ranges namely FolderName (refers to B column which has lot of duplicates) and WorkflowName(refers to C column).
For the first combobox, the dynamic named range FolderName is the source. So combobox 1 is populated with 2 values AUDIT, EPG. Here, my intention is "when i select AUDIT from combobox 1, then combobox 2 should be populated with the 3 values which corresponds AUDIT in the source worksheet.
View 1 Replies
View Related
Mar 17, 2009
I have created a combo box in a userform called combobox1 and userform1
I have also created 2 command buttons called Go and cancel
below is the code for the combo box.
View 3 Replies
View Related
Apr 25, 2014
I have it working as I need it to with Active-x combobox but I need to move to a form method because the Active-x combobox is buggy in the worksheet and has these strange font and box resizing issues which there is no solution to out there.. Something about if you have external monitor or projector plugged in and it using a different resolution to what your native laptop or pc is using.. doesn't make any sense to me and unfortunately I have given up on it.
Problem is what I want doesn't seem like it can be done with form combobox but I will seek your support first before I come to that conclusion.
So using form Combobox, this is my setup:
Combobox1 contains a short list of Teams i.e. ENT,MEL,EMEA,MTVSSL,TSJ -- I am referencing this from the FORMAT CONTROL property Input Range: TEAMS!A2:A6
Combobox2 I need to list the names of the people in those regions i.e. John Doe etc.. I have column with regions as headers and the people in each column in the respective region. i.e. B1:B16 has the list of people for the team called ENT (B1 is the header "ENT") and B2:B16 is the names of the people.
Problem is I don't know how I can link the two based on selection in Combobox1?
One catch, I prefer not to hard code the names of people in any code, if I can reference from a table or cell that would be better as the list of people within a team will increase over time.
View 1 Replies
View Related
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
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
View Related
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
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
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
Apr 19, 2014
How to repeat excel Macro?
View 11 Replies
View Related
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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