Macro code, cell Data to pick from TAB name

kishore k

New Member
Joined
Jan 18, 2019
Messages
25
hi, I need a macro code where specific column has to pick from TAB name.

For Ex: excel sheet tab name "PRIME J654".

Data in Column M in same sheet as " J654- GOODS INTAKE"

1.Now, if I change the name of TAB to "PRIME J655", Then data in column M has to pick the last four characters "J655- SALE OF GOODS" (Sale of Goods to be entered manually)
2.Though the four characters pick from tab name to Column M, it should allow me to edit manually the data after J655- "SALE OF GOODS"
3.The data in column M has to be blank if there is no data in Column C. This column is for account code
4.I need to apply the macro to multiple tabs, with running tab names & numbers.like "Prime J655", "Sales J656", "Purchases J657" etc.,

Please help..

Regards,
kishore
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

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