Hi,
Goto VBA in OL (Alt+F11) and Insert->Module to add a new module then copy & paste the following code into this new module:
'----Code Start----
Sub SetCategory()
Dim olMail As MailItem
If Application.ActiveExplorer.Selection.Count = 1 And _...
Hi,
If you enter only one single quote before entering your real data then excel cell will see that you are entering a "text" by ignoring the real data type.
So if you enter '1255 in a cell then excell will see that you are entering 1255 as string and remove ' from the beginning...
You can set listindex property to -1 when listbox clicked.
Private Sub List1_Click()
List1.ListIndex = -1
End Sub
I hope this helps.
Regards Oz
www.TheOfficeExperts.com
....
Windows(file).Activate
ActiveWorkbook.Close (False)
err:
RESUME NEXT
Next i
....
And also put On Error line before Loop
Regards Oz
www.TheOfficeExperts.com
If you are using ADO then I suggest reading this article and re-installing MDAC.
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q255986
Actually when I got this error it was about a reserved word I used as field name in my sql connection string and fixed after changing it but I also...
First, you can still protect your cells. Just select your changable cells (which macro modifies) and click Format Cells then click Protection tab and clear the Locked checkbox.
Now Protect your worksheet.
And for Tab order for this unprotected cells open the VBA and select the Sheet1 object in...
Hi,
If you know the cells exactly then you can use Range object with an array like below (A1,A3,A5 and A9 are sample cells to clear):
Range("A1,A3,A5,A9").ClearContents
Or for a general way (you don't know exact cells or they are too much),
1- (They are too much) Select those...
I don't know if there is a switch but this way worked to disable auto hyperlink. Actually just a cheat what deletes hyperlinks if entered value is an hyperlink.
'Code goes to SheetX object module in VBA.
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Hyperlinks.Count > 0...
This may help. Runs for selection and increasing value variable is incVal.
Sub IncreaseMacro()
Dim myrng As Range
Dim mycell
Dim incVal As Double
incVal = 0.1
Set myrng = Selection
For Each mycell In myrng.Cells
mycell.Value = IIf(mycell.Value * incVal < 10, mycell.Value +...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.