I downloaded an email list into Excel. The email addresses are numbered but the numbering and the email address are all in 1 cell....A1, A2, etc. There are over 2,000 email addresses and I am looking for VBA script that will take out the numbering in each cell.
Info in each cell is as...
Gavin:
Thank you. That did the trick. I had browsed the site and always step through the code while watching the worksheet. The problem I have is I only do this once or twice a year and often forget.
I appreciate everyone's help and patience on this forum. It's a great feeling when a...
This doesn't work. I get:
Runtime Error 1004
Application-defined or object-defined error.
I always have a problem with the proper syntax.
Thanks,
Numbers
Open one instance of Excel and 2 workbooks. Do not maximize the workbook window. Drag one workbook to the 2nd moniter and size it to fit that monitor. Do the same with the 1st workbook on the 1st monitor.
Thanks,
Numbers
Found the problem. I had defined the variable as currency. The 360 day method only accepts variables defined as doubles. Appreciate everyones' input and help. You guys are great.
Numbers
Thanks,
Numbers
I just wrote the following sub and then call it when I want to search for something.
Public Sub subFind(ByVal FindItem As String)
' Find an item loaded from outside procedure
Cells.Find(what:=FindItem, After:=ActiveCell, lookat:=xlWhole, _
SearchOrder:=xlByColumns...
That doesn't work either. I tried entering the DateValue method as shown in the last response and any number of other combinations. Nothing passes the number of days out. The calculation is not happening.
Any other ideas?
Numbers
Thanks,
Numbers
...Below is the portion of code that does the actual calculation. I have not shown the DIM statements. The line that doesn't work is noted with ***
' Load data to perform calculation from present line
Worksheets("Accr Int").Cells(intRow, intCouponCol).Select
sngCoupon =...
Open Excel twice. Place the first on monitor 1 and the second opened Excel on monitor 2. Then open files according to where you want to view the file.
Thanks,
Numbers
...Below is the portion of code that does the actual calculation. I have not shown the DIM statements. The line that doesn't work is noted with ***
' Load data to perform calculation from present line
Worksheets("Accr Int").Cells(intRow, intCouponCol).Select
sngCoupon =...
Excel has a function Days360 which is used to calculate the number of days between 2 dates as if each month had 30 days. It appears VBA does not have that function. DateDiff uses a 365 day calendar.
Does anyone know how to calculate on the basis of a 360 day calendar when finding the number...
PHV seems to be on the right track. Date1 and Date2 populate but no result occurs. I used the following:
DayCount = Application.WorksheetFunction.Days360(Date1,Date2)
What is missing to get a the resulting # of days?
Use the Macro recorder to get an idea of what the code would look like for starters. It is in Tools, Macros, Record. While the recorder is on, go through your series of cut, copy, paste procedures and then stop the recorder and look at the code.
You will have to do a little work to move to...
Excel has a function Days360 which is used to calculate the number of days between 2 dates as if each month had 30 days. It appears VBA does not have that function. DateDiff uses a 365 day calendar.
Does anyone know how to calculate on the basis of a 360 day calendar when finding the number...
...as Integer
Sub MainSub()
intInteger = 2
Convert (intInteger)
End Sub
Function Convert(ByVal number as Integer) as Integer
number = number * 4
End Function
How do I get the 'number' (2*4) 8 back into the MainSub and put it in the original intInteger or another variable...
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.