Word Wrap and File Path in a Footer VB

SamS

Well-known Member
Joined
Feb 17, 2002
Messages
542
Still using Excel 2003.
I have a footer macro where the variable "Source" of data is requested in the following code, however in some instances the length of text is quite long, is there a way to word wrap this text.

.RightFooter = "Page &P of &N" & Chr(10) & "&""Arial,Italic""&9Data Source: " & Source

Secondly the macro for the LeftFooter returns the file path and file name (&Z &F) however this returns a drive letter e.g. H:\ where as I want to return the server name e.g. \\ntgcca1\ is this possible.

Thanks in advance.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,224,583
Messages
6,179,682
Members
452,937
Latest member
Bhg1984

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