excel vb excel macro

  1. G

    How to close/exit VBA Form macro if conditions are success

    How to close/exit VBA Form if conditions are success; (unprotect all sheets with a password) - I created a form for Inputting passwords to unprotect all sheets - Then click the Submit button to execute the code If the password is correct the form did close, how do I close the form if the...
  2. R

    VB Code (Reference a cell to a IF/Vlookup)

    Hello. I am trying to do the following in VB. Reference a cell to a IF & Vlookup statement. Here is what I have currently. Z is a variable that works...data can range from line 6 to line 1000. ---------------------------- Private Sub Reset_Pricing_Click() (works) For Z = 6 To 1000 (works)...
  3. S

    VBA code to auto adjust cells

    Is there a vba code which can adjust the cell whenever we put a line break alt+enter and adjust the cell such that the data before line break is only to be seen
  4. M

    How to copy the row from duplicate rows if the conditions are met through VBA

    I have an excel master sheet (output) with columns "A" to "AL", The column "A" will have ID's,column "k" has date , column "AB" have sequence(0,1,2,3,4..) and column "AL" have row count(2,3,4,5,6..). The column A will have same values sometimes i.e,(Duplicate values). I need to copy the entire...
  5. W

    Lookup and add info

    Hello, I have a list of 5000 patients in column A. I have a form that i want the user to be able to enter patients name found in column A then in textbox 2 and 3 populate column B and C of that patient and also be able to add information on that current patient that he searched for Columns...
  6. S

    Copy real time data from p-drive

    I am new to VBA programming I know how to copy data from a range and paste it on another range. But I can’t figure out how to copy real time data (the data changes everyday) in a workbook located on a p-drive to another workbook that I created. Some of the cells on the real time data are blank...
  7. T

    VB Code to copy content of external worksheet to named worksheet in this workbook

    I am looking for some VB code for the following. I need to copy all of the data (values only) from worksheet 'extworksheet' in workbook 'extworkbook.xlsx' to worksheet 'localworksheet' in this (active) workbook. Literally replicate the 'extworksheet' into worksheet 'localworksheet' from cell...
  8. P

    VBA to Add text and a picture on an image

    Hi, I am looking for excel VBA script where I can attach an image to an outlook mail and add text and picture on the image. Could any one help me out in this. Advance Thanks, Pranathi.
  9. X

    Excel Macro Overflow 6 Error Help

    Can some one help me fix this error. When i run it the first time it works fine but when i make the edits and run it agian i get the "Overflow 6 Error" Dim cid(100) As String Dim rX As Range Dim rEnd As Range Dim i As Integer Dim x As Integer x = 0 Set rX =...
  10. T

    Hold code in one file and excute find and replace code upon command on a random file selected by user

    Hi, This is my first post on this site, I hope someone can help. Forgive me in advance, as I am no expert and in the very early stages of learning excel vba. I would appreciate if you could provide any help on the following. Any suggestions of improvement of codes is always welcome too...
  11. D

    Merging Column from multiple workbooks to a specific range of an existing Workbook

    Hello Excel experts, I have been struggling for two days and I really need help from you. I am fairly new to VBA coding. I hope that I can find help here. I want to be able to gather a column from multiple workbooks in the same folder to a specific range of an existing Master workbook. A few...
  12. P

    Excel - macro or vba code?

    How can I create a code that will compare sheets and replace another column when there is a unique identifier found. Sheet 1 and 2, column A will contain a unique ID but they wont be in the same order. Sheet 1 and 2 will have column B containing non-unique data. I need for sheet 1 column B to...
  13. S

    need formula to extract 4 digit for c1 to c3 in vb macro

    hi' i am trying to write a code in vb macro ,i am using below formula as Range("C3").Select ActiveCell.FormulaR1C1 = "=MID(R[-2]C,3,4)" Range("C3").Select Selection.Copy Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False...

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