Hi there,
I've got two questions today:
First: How can I automatically return the first day of the week in vba. I want to do this completely without any user input, i.e. how can I properly code this:
Format(FirstDayOfWeek, "mmdd").
Second:
How do you multiply and divide cells using vba? I thought this would have been easy, but I'm getting a type mismatch when i try this:
For j = 1 To 3
Do
x = CDbl(Cells(i, j))
y = CDbl(Cells(i, j + 4))
z = CDbl((x - y) / x)
Cells(i, j + 8) = z
i = i + 1
Loop Until IsEmpty(Cells(i, j))
Next j
Any help would be very much appreciated!
Jamie
I've got two questions today:
First: How can I automatically return the first day of the week in vba. I want to do this completely without any user input, i.e. how can I properly code this:
Format(FirstDayOfWeek, "mmdd").
Second:
How do you multiply and divide cells using vba? I thought this would have been easy, but I'm getting a type mismatch when i try this:
For j = 1 To 3
Do
x = CDbl(Cells(i, j))
y = CDbl(Cells(i, j + 4))
z = CDbl((x - y) / x)
Cells(i, j + 8) = z
i = i + 1
Loop Until IsEmpty(Cells(i, j))
Next j
Any help would be very much appreciated!
Jamie