Page setup problem

  • Thread starter Thread starter Ussiddiqui
  • Start date Start date
U

Ussiddiqui

I am doing page setup of some excel sheets generated from Visual Basic
..

I am having problems executing this code

wrkSheet.PageSetup.Orientation = xlLandscape


Control says, Cant assign value to orientation property of pagesetup
class...............

Please help...............
 
If you are doing it from VB (as against VBA) then the constant xlLandscape
is not known. Try using

wrkSheet.PageSetup.Orientation = 2

--

HTH

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top