#vba

  1. V

    VBA Code or formula to replace "Employee" with the second name of a different cell.

    Hi Everyone, I have an annual assessment form that collects data from certain fields and based on the grading given to those fields, specific comments will be generated on column "AH" for each respective employee. All those comments state "Employee" at the beginning of each sentence. What I...
  2. R

    VBA - AUTO FIT, Can we remove make the sum formula in below code

    Sub ExtractTableFromEmailToExcel() On Error GoTo ErrorHandler ' Start error handling Dim OutlookApp As Object Dim OutlookNamespace As Object Dim Inbox As Object Dim Subfolder As Object Dim Item As Object Dim HTMLDoc As Object Dim Table As Object Dim Row As...
  3. K

    VBA DOUBT- can we add heading color and remove blank columns in this code?

    Sub ExtractTableFromEmailToExcel() On Error GoTo ErrorHandler ' Start error handling Dim OutlookApp As Object Dim OutlookNamespace As Object Dim Inbox As Object Dim Subfolder As Object Dim Item As Object Dim HTMLDoc As Object Dim Table As Object Dim Row As...
  4. C

    VBA to Highlight Specific Phrase

    Hi there, I am currently using the VBA code below to highlight specific text in a cell. However, it doesn't allow me to highlight a phrase with spacing in between (e.g. "live tour"). May I know how can I change the VBA so that I can highlight a phrase instead? Sub...
  5. M

    VBA code for a Macro button to add sequential numbers on individual rows, depending on cell value

    Hi all. I'm looking some VBA code that I can assign to a button or a formula if that will work :-) I have list headers which are copied to cells C24:C36, then I'm assigning values to cells D24:36, these values represent the amount of sequential numbers I need adding. Basically, I want to...
  6. A

    Execute a button from third party com add-In

    I have installed a third party com add-in. It is a .vsto file format. The add-in has a Refresh All button. I want to execute that using VBA. Is this even possible?
  7. A

    Update chart source data range in ppt

    I have a code which adds a new chart in ppt. Then opens up the chartdata workbook and pastes in the data from an excel file. However, the source data range does not expands according to the data pasted. Can this be done dynamically using Excel VBA? I tired resizing the Table but the vba is not...
  8. A

    Late Binding for FactSet Office Lib (Excel VBA)

    How do I set the Object reference for FactSet? I need to check if the user has FactSet or not. If yes, refresh the workbook using FactSet.
  9. A

    Break Link and Rename the Shape in PPT

    I have a code which loop through all the slides in the active presentation and checks for the name of the shape and then breaks the linking. Now, I want to rename that shape. The problem is that the shape automatically gets converted to a picture and the PowerPoint automatically assigns a name...
  10. H

    using conditional formatting on with Excel VBA

    Dear All, I am a beginner in VBA and I wan to know the simplest way to add conditional formatting for my Macro. please help.
  11. S

    Macro to run a form control Drop down for all individual values in the dropdown

    I need to run a excel table that dynamically changes based on form control drop down selection. I want to run a macro that changes the dropdown and copy+paste my table else where for all values in the form control. Can someone please help ? from the pic: based on brand selection, the table...
  12. R

    VBA code to send emails if column i = >5

    Below is the code i use i need a check to see if column i is greater than 5, if it is then send the email if not do not send the email Sub Send_Bulk_Mails() Dim sh As Worksheet Set sh = ThisWorkbook.Sheets("sheet1") Dim i As Integer Dim OA As Object Dim msg As Object Set OA =...
  13. A

    Open xlam file in read only mode if USERNAME does not match

    I have created an xlam file which is saved on the shared drive and a dozen of people use it now. However, I'm not able to save any update I make to any of my code as it opens the file in read only mode. Is there a way I could check for the USERNAME and if it does not match then open the xlam...
  14. I

    Need help in writing a VBA code

    C D E F G Session Code Demo Practical Lecture Seminar D01 3 3 D02 3 3 In the example table above, I would like to write a VBA code to list the Session Code + Lesson Type like this D01 Demo D01 Practical D02 Lecture D02 Seminar I was able to look for a code but it just gives...
  15. O

    Add Image Button

    Hello, I have this VBA code, attached below, to react to a form control of a button. Anytime the user clicks the button it will pull up their photos and they can select the photo they want to use and it will paste it in a certain cell/section. After the report is done, everything gets...
  16. K

    We need only Visible,"Deskboard" Sheet, When I click Deskboard After Hide All other sheet Also ? how its possible on VBA coding ???

    We need only Visible,"Deskboard" Sheet, When I click Deskboard After Hide All other sheet Also, I will Making Purchase Order Tracking System I was Jump Sheet Using Hyperlink Also. Pleased Need VBA Coding When I click Deskboard After Hide All other sheet Also = "Deskboard" Sheet is Trigger...
  17. K

    When I Click cell C8, I should see the command button shown in E8 not otherwise via vba coding

    When I Click cell C8, I should see the command button shown in E8 not otherwise via vba coding. i was follow this code but not working pleased help me : Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Not Intersect(Target, Me.Range("C8")) Is Nothing Then...
  18. K

    When the item-list is selected in the range in particular cell, the Shape button should be visible on the side.

    When the item-list is selected in the range in particular cell, the Shape button should be visible on the side. How it possible to make this hyperlinkbutton in table
  19. O

    Help with VBA

    Could someone help me, please? I've been looking at this code for hours and I can't seem to find my error. Problem: I have a form that is requesting some user information, namely: txQtdeTransfOrigem txBonusOrigem txDesagio txNovoSaldo txNovoCPM The textboxes: txSaldoOrigem, txCPMOrigem...
  20. Q

    How do I pass a string variable to the web.contents argument of Power Query (Get & Transform)?

    Hello, I am using Get & Transform in a VBA routine to get the contents of a webpage that I want to later parse. The content is bills from our state legislature and how the legislators voted. Each Bill has its own page, so I want to build the string according to the bill number and use the...

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