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

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

ravishankar

Well-known Member
Joined
Feb 23, 2006
Messages
3,566
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,191,199
Messages
5,985,234
Members
439,952
Latest member
djharter

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
Top