Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Not able to setup all PageSetup's Properties


14 Jul 2011   #1

Windows 7 64 bit Enterprise
 
 
Not able to setup all PageSetup's Properties

Hi,

My VB application is using Excel objects for display the output. My application is working fine in Windows XP but Windows7 am facing a new problem while setting a pagesetup properties like as below

.PageSetup.LeftHeader = "&"Wide Latin, Normal"&14

I got an error 1004, "Impossible to define a property LeftHeader in PageSetup class." As like i can get an error for setting other pagesetup proprerties too.

Could you please suggest, how can i handle this issue?

Thanks in advance...

Regards
John


My System SpecsSystem Spec
.

17 Jul 2011   #2

Windows 7 Home Premium 64bit
 
 

Hello Johnraja, welcome to the forum.

VB is not one of my strengths, but maybe this will help:
Visual Basic :: Excel Run-Time Error 1004
My System SpecsSystem Spec
18 Jul 2011   #3

32bit: XP, Win7 H.P. / 64bit: 2008R2, Win7 Pro, Ultimate / Several flavors of Linux
 
 

Hello John -

My VBA is really rusty but some thoughts...

Do you also have "center" and "right" properties in the pagesetup? If so, perhaps "left" is competing for space.

Do you have a printer attached? Excel needs to communicate with the default printer when doing any page setup tasks. Also note that the printer driver will also come into play. For example, if you received the code from another person and their code references a Xerox printer driver but you use an HP printer driver, you could get an error.

Good luck tracking it down - please post if you find the solution!

Regards,
GEWB
My System SpecsSystem Spec
.


18 Jul 2011   #4

Windows 7 64 bit Enterprise
 
 
The problem has been solved

Hi All,

Due to the admin rights only i faced the pagesetup error. Now i have changed my users rights as like local admin. so i can able to set up all the available pagesetup properties.

Thanks for all your valuable support.

Regards
John
My System SpecsSystem Spec
18 Jul 2011   #5

32bit: XP, Win7 H.P. / 64bit: 2008R2, Win7 Pro, Ultimate / Several flavors of Linux
 
 

Hello John -

Yup, that would do it - sometimes the simplest is overlooked. Glad you posted the solution!

Regards,
GEWB
My System SpecsSystem Spec
Reply

 Not able to setup all PageSetup's Properties




Thread Tools



Similar help and support threads for2: Not able to setup all PageSetup's Properties
Thread Forum
RAID Setup - Alienware - A few setup questions? Hardware & Devices
Solved Tuner Setup - setup loops at accepting Channel Changer Media Center
Properties Customization
Properties ? Music, Pictures & Video
Win7 Starter getting error on initial setup; locked in setup loop Installation & Setup
System properties Hardware & Devices
Speakers Properties Sound & Audio

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 11:05 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33