Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Cant find project or library

hi, havin alittle trouble if any1 can help. A command button on my use
form set headers & footers on worksheets according to textbox entries
On the footer it's required to use 2 lines so i added the comman
&Chr(10) to drop down a line. i know this must be right as did i
manually using Record Macro to get jist of code. When run now though
just get compile error, any ideas ??? copy of code below


Sub Machine_HeadFoot()

' Set Machine List Header\Footer

Worksheets("Machine List").Select
With ActiveSheet.PageSetup
.LeftHeader = "&""Arial,Bold Italic""&12&D"
.CenterHeader = "&""Arial,Bold Italic""&12Machine List"
.RightHeader = "&""Arial,Bold Italic""&12Site: "
Main.SiteBox.Value
.CenterFooter = "&""Arial,Bold Italic""&12Nobles Amusements,
& Main.AddressBox.Text & ", " & Main.TownBox.Text & ", "
Main.CountyBox.Text & ", " & Main.PostBox.Text & Chr(10) & "Tel:"
Main.TelBox.Text & " Fax:" & Main.FaxBox.Text

End With
Seals_HeadFoot
End Su

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Cant find project or library

Are you sure it is the CHR(10) that is giving the compile error. It doesn't
throw one for me.

Break the code down, adding a bit at a time, until you get the error.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Swift2003 " wrote in message
...
hi, havin alittle trouble if any1 can help. A command button on my user
form set headers & footers on worksheets according to textbox entries.
On the footer it's required to use 2 lines so i added the command
&Chr(10) to drop down a line. i know this must be right as did it
manually using Record Macro to get jist of code. When run now though i
just get compile error, any ideas ??? copy of code below


Sub Machine_HeadFoot()

' Set Machine List Header\Footer

Worksheets("Machine List").Select
With ActiveSheet.PageSetup
LeftHeader = "&""Arial,Bold Italic""&12&D"
CenterHeader = "&""Arial,Bold Italic""&12Machine List"
RightHeader = "&""Arial,Bold Italic""&12Site: " &
Main.SiteBox.Value
CenterFooter = "&""Arial,Bold Italic""&12Nobles Amusements, "
& Main.AddressBox.Text & ", " & Main.TownBox.Text & ", " &
Main.CountyBox.Text & ", " & Main.PostBox.Text & Chr(10) & "Tel:" &
Main.TelBox.Text & " Fax:" & Main.FaxBox.Text

End With
Seals_HeadFoot
End Sub


---
Message posted from http://www.ExcelForum.com/



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't find project of library MG Excel Discussion (Misc queries) 3 May 19th 08 12:06 AM
Can't find project or library AnnapolisStar Excel Worksheet Functions 1 June 15th 07 04:02 PM
cant find project or library pcor New Users to Excel 2 January 5th 07 03:52 AM
Can't find project or library Tracey Excel Discussion (Misc queries) 4 January 5th 05 05:19 PM
Can't find project or library Roy[_5_] Excel Programming 2 February 22nd 04 03:48 PM


All times are GMT +1. The time now is 10:45 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"