I have a data of stores and need to send a mass email to persons and need to customize each mail before sending like body of email need to filter by individual person. I have a simple code. but need to customize it Code is Sub sendmail() Dim olApp As Outlook.Application Dim olMail As Outlook.MailItem For i = 2 To 4 Set olApp = New Outlook.Application Set olMail = olApp.CreateItem(olMailItem) With olMail .To = Cells(i, 1).Value .Subject = Cells(i, 2).Value .Body = Cells(i, 3).Value .Display ''.se...
ادامه مطلبAs you suggested I have done changes but still I am not able to make it user-friendly or you can say every time when i have to use this code I have to tu on Scripting Runtime on different computers.Please suggest and make my code corrected as soon as possible Below is my code :- Option Explicit Public fs As Object Sub GetFileNamesandPageCount() Dim diaFolder As FileDialog Set fs = CreateObject("Scripting.FileSystemObject") Dim i As Integer Dim fld As Object Dim T_Str As String Set diaFolder = Ap...
ادامه مطلببخوانید Hi Kindly help me out to resolve this in excel through macro. enter image description here...
ادامه مطلبI am using Excel 2013. I am new to VBA. I found a code that would simply hide 2 rows (36 and 37) if my cell N39 is equal to "Passed" I found that code but I receive the message "ambiguous name detected "Worksheet_Change" Private Sub Worksheet_Change(ByVal Target As Range) If Range("N39").Value = "Passed" Then Rows("36:37").EntireRow.Hidden = True ElseIf Range("N39").Value = "Failed" Then ows("36:37").EntireRow.Hidden = False End If End Sub so I tried the name of my worksheet but it does nothing ...
ادامه مطلببخوانید If I am in my current working directory, is there a powershell code that I can run which will loop through the subdirectories and delete all folders that are named 400eV, 410eV, 420eV... up to 500eV?...
ادامه مطلبI have been leaing about VBA code but this has me stuck. I am using Excel-2013.I have 4 cells in my "Invoice" sheet (Cells E3, C3, E36, and E34) that I want to transfer to my "Method of Payment" Sheet in the next available row. The first row that will be available is the 3rd row. I would like Cell E3 to copy into column C, C3 into D, E36 into E, and E34 into F. When each invoice is saved I want this data to transfer. I already have code clear my invoice. I just need to transfer these 4 data cell...
ادامه مطلب