Macro Help

JoeMoneyOU

Board Regular
Joined
Jul 3, 2008
Messages
81
My project has to deal with looking up different project numbers. On my Finance sheet, there are project numbers assigned to different project. I have 12 other worksheets according to month but once I enter in a new project number on my Finance sheet, I want a macro to run and add that new project number to the month sheets by entering in a new row. Any help on doing that??
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
HI
Try the following codes
Code:
sub add()
Dim x as integer, a as integer,y as integer
dim b as string
x= worksheets("sheet1").cells*(rows.count,1).end(xlUP).row
b= cells(x,1)
for a = 2 to sheets.count
y= worksheets(a).cells*(rows.count,1).end(xlUP).row
worksheets(a).cells(y+1) = b
next a
end sub
Run the macro. it will copy the last project name in col A to all sheets.
Ravi
 
Upvote 0

Forum statistics

Threads
1,214,528
Messages
6,120,064
Members
448,941
Latest member
AlphaRino

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