vb code

  1. M

    VB code to search according to data in search field.

    Hello, I have an excel sheet with several columns.Each column stands for specific historical data. I would like to search in the excel sheetover a search field (command button). A reset command button is planned toreset the sheet after every search and to empty the search field (commandbutton)...
  2. S

    help with existing vb code

    Need help modifying the code below to meet my requirements. Instead of having the InputBox prompt for Vendor No & Vendor Name and then saving to C:/. I would like to code to automatically use the file name I am converting into .CIF and store to a specified folder. Also, need the bottom part...
  3. T

    Vacation Time Error VBA Code

    Hello Everyone, I currently have a worksheet that will populate days with the initials of the Staff that has been assigned a task that begins and ends in a certain time frame. I've used an IF function for this. I now have another task I must do. My boss wants there to be an Error Message...
  4. R

    VB help in Combining Data from Multiple workbooks into a single workbook with same headers

    Hello Everyone, Is there a way to combine data from multiple excel files into one single sheet by appending data? All the files have the same headers. Also these sheets have drop down list and conditional formatting. Is it possible to append the original data with all the conditional formatting...
  5. L

    Need macro to search column A Sheet 1 for a similar match (about 6 common characters in the same order in the cell) in Sheet 2 then cut column B,C,D,E

    I have a bit of a complex problem that i have been having trouble fixing. We currently perform alot of data entry and i would like this macro to avoid doing it manually. We recieve a list from our client and in column A is a list of their clients. I need the macro to verify as close a match as...
  6. J

    Tewak in the VB code required to perform conditional tasks

    I am using the following code to calculate the Balance from the data, Balance = Demand - collection Sub DCB() Dim c As Range Dim lRow As Long lRow = 1 Dim lRowLast As Long Dim lRowDiff As Long Dim lRowPortion As Long lRowPortion = 1 Dim bFoundCollection As Boolean With ActiveSheet...
  7. G

    VBA Copy/Paste Worksheet Loop Object Error

    A newbie to VB coding here. I have a small piece of code that has me stumped. I am using Excel 2012. The purchase of the code is to allow the user to enter one Ticker symbol that resides in two Excel sheets. Each sheet has the ticker symbol in column A, date in col B, formula in column C, and...
  8. S

    need to edit and add vb code to excel sheet

    hi please use the version1.7 to add the vb formula in it. in modmain vb script hi i need to add a vb code in by vb script below eg- 1.data is in c1 out put to c3.,after first 2 digits the following 4 digits c3 =mid(c1,2,4) 2. data in c9, and c16 ,“open and Closed inverted...
  9. M

    VB Code To Move Entire Row Based On Cell Contents

    I pull weekly alarm reports. Each alarm has a different "Process States". The states include: active, inactive, completed and pending. I only need to see the "Active" alarms. The Process State is in column J. The raw report looks like this. The report is anywhere from 40,0000 to 60,0000...
  10. J

    Searching and unhiding specific worksheets using VB

    I have five worksheets hidden in my workbook. All of these worksheets have either "Yes" or "No" written in cell C4. (3-yes, 2-no) I also have a search bar in the form of a textbox and a command button. I want to be able to type "No" in the textbox, click the command button and have the pages...
  11. B

    Losing VBA when emailing spreadsheet

    Is there a way to send the VB code for buttons and macros with the spreadsheet when emailing from within excel? I have a button to send a spreadsheet through outlook, but when the file arrives at recipient the code and macro are not there.
  12. P

    Can rows/ columns containing merged cells be transfered to another worksheet through VB codes or other means.

    Hello, I've searched to try and find the answer to this question but not having much joy so any help will be greatly appreciated. I'm relartively new to excel VB codes and my seemingly impossible task is shown below: * I have a list of data each one has 6 rows of data. * (Rows...
  13. M

    VB Code issue

    I have this code on multiple modules: '---Get Short Filename cShortFileName = GetFileName(aSelections(General.nReqNo, 4)) '---Check for a trailing period and xls cShortFileName = GetShortFileName(cShortFileName) '---Set Page Setup and Print Area InsertHeaderFooter() The InsertHeaderFooter()...
  14. J

    How to Copy data from one sheet to another

    Hello Guru's, I am new to this form and VB macro i need help .. I get a file where i have some data , its as below if the total dr is not equal to cr then i want the data to be copied to a new sheet ...how can i create a macro for this ? <tbody> Line Account Desc dr cr dr cr 1 123 test1...
  15. R

    simple percentage increase to the quantity in VB

    Hi guys, Can anyone help me with this ?? My original VB code is ElseIf brand = "MAC" And year = "2013" Then Profit = 22 / 100 * cost * quantity ElseIf brand = "Rimmel LONDON" And year = "2013" Then Profit = 31 / 100 * cost * quantity ElseIf brand = "REVLON" And year = "2013" Then Profit...
  16. S

    VBcode for adding a LOOKUP formula

    Hello all, I am relatively new to the VB code for Excel macro and wanted to get your advise on the following macro.. '=== CODE START === Sub c_SLCodeThisWk() Dim t As Long For t = 2 To 100 Range("AR" & t).Formula =...
  17. E

    Button in sheet1 with macro, copied to sheet2 and sheet3, is not working

    Hello guys, I have this macro code in Sheet1 assigned to a button named Combination. I copied the whole sheet twice and moved to end. So they have the same data content and hopefully the macro in sheet1 will work as well in sheets2 and 3. But it's not. I just copied the code from VB codes Excel...
  18. H

    Dashboard Reporting

    I have created an excel dashboard that contains two separate traffic light charts. Each traffic light collects its data from a different cell. When only 1 traffic light is showing and the VB code is for 1 light it works. When I add the second light and code I get a "Compile Error: Ambiguous name...
  19. D

    Autoclosing an idle workbook on a locked workstation. Teething problems.

    Currently I have a dashboard style excel document used by multiple users on a network, these users require read/write priviledges and as such only one read/write access file can be opened at a time because of the network.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office"...
  20. M

    Using Find Function in a Macro

    Long time viewer, first time poster. I want to build a macro to push a value from an input cell to table on another tab. For the sake of this forum, I made a very simplified version of what I want to do. On my second tab I have a table with TV shows and number of seasons: Dexter 6 True...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top