Help with some Macros

Mikie

New Member
Joined
Apr 7, 2002
Messages
21
First off I would love to give much thanks to Thomas Schreiner, he has been so much help, but I do not want to take all of his time.

I have been working on a project, well a basic and Tom has taken it to new levels I never thought possible.

I have a monthly log and need it to do some calculations based on another sheet.

Just simple (I think) calculations based on the field being emply or haveing a date.

It doesn't matter what is there just if anything is there.

example:

sheet 1
column A
name
Column B
Date

The other worksheet:
If column B is written in add one to the total if not ignore

I now know I know less than before. The more functions I try, the worse everything gets.

I may just stick to SUM(a1:b2) that is a sure calculation.

Thanks

Mike
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
I am not sure exactly what you want, but you can edit the following to fit your situation:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target <> "" Then Total = Total + 1
Worksheets("Sheet1").Range("A1").Value = Worksheets("Sheet1").Range("A1").Value + 1
End Sub

Put this code in the code for the worksheet that will be added on to. The code will add "1" to Cell A1 on Sheet1 everytime a cell is changed and not blank.
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,391
Members
449,080
Latest member
Armadillos

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