Access the File Name?

dguenther

Board Regular
Joined
Jun 15, 2011
Messages
75
Hi,

I have a column of text like the following

No. CV-89-0328-PR
No. CV-90-0356-AP
No. CV-89-0366-PR
No. CV-89-0265-PR
No. CR-88-0134-AP
No. CV-89-0303-SA
No. CR-87-0317-AP


It is going to be in a file called "Alabama-1995".

I would like to have a macro that makes that that column:

Alabama-1995-No. CV-89-0328-PR
Alabama-1995-No. CV-90-0356-AP
Alabama-1995-No. CV-89-0366-PR
Alabama-1995-No. CV-89-0265-PR
Alabama-1995-No. CR-88-0134-AP
Alabama-1995-No. CV-89-0303-SA
Alabama-1995-No. CR-87-0317-AP


I feel like it would be simple enough, but I can't figure out how to access the file's name.

Thanks,

Danny
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,224,606
Messages
6,179,866
Members
452,948
Latest member
UsmanAli786

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