Programmatically change screen orientation and/or resolution using VBA?

We don't have VB.NET available and I was wondering if it is possible to create VBA code that would change:
1) screen orientation (and maybe resolution)
2) on a specific monitor (in a multiple monitor setup; we have two) 
The idea would be to put it into an Excel workbook and have the macro autorun then exit.
I see examples for C#.Net but can't find any for VBA. Maybe it's not possible. Your comments are appreciated. Thanks.
Note: ANY MS Office application can be used as long as it can be used via a shortcut on the desktop and run
automatically. "One click and done" is the idea.

Hi Dougmeister,
I agree with Cindy that the VBA doesn't have function to achieve the goal. Also there is no function in Excel object for this requirement.
The way we can achieve the goal is that using Windows API as Cindy motioned. And here is an helpful article talking about this topic:
Office Talk: Working with VBA in the 32-bit and 64-bit Versions of Office 2010
And about Windows API issue, I would suggest that you get more effective response from
General Windows Desktop Development Issues forum.
Hope it is helpful.
Regards & Fei
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Programmatically change screen orientation and/or resolution?

    We don't have VB.NET available and I was wondering if it is possible to create VBA code that would change:
    1) screen orientation (and maybe resolution)
    2) on a specific monitor (in a multiple monitor setup; we have two) 
    The idea would be to put it into an Excel workbook and have the macro autorun then exit.
    I see examples for C#.Net but can't find any for VBA. Maybe it's not possible. Your comments are appreciated. Thanks.
    Edit: ANY MS Office application can be used as long as it can be used via a shortcut on the desktop and run automatically. "One click and done" is the idea.

    Hello Doug,
    I believe you can use Windows API functions to get the job done.
    Anyway, the current forum is for Office Apps. I'd recommend asking VBA questions on the
    General Office Development  forum instead.

  • I cant update my iPhoto from app store is aking me to sign in to a acount that I recently change the password and I dont use it a lot. what can I do?

    I cant update my iPhoto from app store is aking me to sign in to a acount that I recently change the password and I dont use it a lot. what can I do?

    Find the password or reset it using the lost password link
    LN

  • Change Scheduling Agreement and Info Record using Bapi

    Hi Experts,
    Can anybody say how to change the Scheduling agreement and Info Record using Bapi.
    I use BAPI_AGREEMENT_MAINTAIN to change Scheduling Agreement .
    But it does not changing Scheduling lines.

    Hi,
    Please find the below link check the setting are correct or not
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a02cb00a-bfb4-2c10-98aa-e33e7f64ba28?quicklink=index&overridelayout=true
    Reagrds,
    Pramod

  • Screen Sharing and WindowServer processes using 35-45% of CPU!!

    I have recently relocated and reconfigured my Apple network and computers in the house :1) MacBook Air dual display MBA with 20" cinema screen in the office, and 2) and Mac Mini connected to a large LCD TV in the living room.
    The plan now is to use the MBA as a primary computer and connect via wireless screen sharing to the MM so that I can monitor that system, run more intensive apps, watch EyeTV, file server tasks, etc.
    But now this has increased CPU and fan activity on the MBA beyond what I would expect. The activity monitor indicates that the Screen Sharing and WindowServer processes are using combined between 35-45% of the CPU (screen share process is a constant 25%!!).
    This is not good, and I wonder if it will be fixed in a future release. Any ideas or suggestions on how to limit the impact of screen sharing on CPU?

    It seems to be running better with system update, and use of a faster computer (now using the higher end mac book air)

  • Cat changed screen orientation from vertical to horizontal

    What key combination will reorient my display from horizontal back to vertical? Do you know someone who is looking for a cat. Ours is now looking for a new home.

    Here you go...
    http://www.dq.winsila.com/windows/windows-xp-tips/how-to-change-the-screen-orientation-in-windows-xp...
    Paul

  • How can I change screen orientation on my iPad air 2?

    How can I change the scrEen orientation on my new iPad Air 2? I do not see a lock device on the side like my old iPad has.

    Tap the padlock icon in Control Center.

  • Portege M700 wont change screen orientation

    I installed the webcam driver for the M700 and each time I install it, I recieve the same error message:
    "Webcam driver open fail - Please restart camera or computer."
    I've reinstalled the drivers numerous times, and it still doesn't work.
    Therefore, I tried the msconfig method, and disabled all start up processes, and then reenabled them.
    The webcam displays the same error message, and now the screen wont change orientation when I swivel the screen.

    Regarding the error:
    *Webcam driver open fail - Please restart camera or computer*
    First of all please ensure that you are using the latest BIOS version.
    If not, update it.
    Furthermore access the BIOS settings and set it back to the default pressing the F9 button.
    Dont forget to save the changes if you would leave the BIOS.
    Additionally and webcam driver update would be advisable too
    Someone has posted this solution:
    +Shut down your computer and restart it, go to the boot screen should be F2 or F12, There is an option at the bottom of the screen that says something like load defaults or just defaults F9 on my system, Click yes to reloading defaults and save and exit, the camera should work fine after that.+
    Check it out

  • Change screen orientation on nano

    How do you change orientation of screen on Nano 6th generation?

    Place two fingers such as your thumb and pointer finger in a pinch-like fashion on the Nano's screen and rotate them either clockwise or counterclockwise to rotate the display.
    B-rock

  • N8 changes screen orientation to vertical on incom...

    I am using N8 in a car in horizontal position because of navigation. The phone is connected to car's hands-free audio device. Unfortunately, when a call is coming the phone changes its display to vertical which makes challenging to see who is calling while driving a car. Is it possible to change such weird behavior in some way?

    When i am in my car i connect the N8 to the cars audio using bluetooth. When a call comes in the name/number of the caller shows up on the car radios screen. No need to look at phone. So if you can pair your phone with your car radio (and that may not be possible - depends on how old your car or radio is) try that and see if it works. I do have two cars. On I can pair the phone to and the other i cannot. So i only have hands free in one car. And as talking on a mobile phone whilst driving is illegal in Australia  I only use my phone in the car that i can pair the phone to the radio. When phone rings i press a button on the sterring wheel to answer. Do not touch the phone.

  • Changed Apple ID and can't use icloud

    okay, so basically today I changed my Apple ID and password. hours after changing it, my iMessage was not working. turns out my icloud is no longer working since I change my Apple ID. in icloud settings, it says my old Apple ID and it is greyed out and I can't change it. I have read that changing my Apple ID BACK to my original ID and password, and then deleting my icloud account, then switching my ID again would work. the problem is, that email for my old ID is "inactive" meaning I can't get emails, or the verification one. when I had tried that, because I couldn't get the verification emailI called apple and he said give it 24 hours to update, but from what I'm reading, that won't work.  I also do not remember my security questions since they were made years ago, and my rescue email or  whatever it is called is also inactive. I keep getting a pop up to log into icloud with my apple ID, and it asks for the password for my OLD ID, which obviously will not work since I changed it.  I think I might be stuck here.

    You need to do the following:
    1.     Log into Manage your Apple ID and change your Apple ID using the EDIT button back to your old email address. This is temporary. Do NOT verify it, do NOT change the password: Apple - My Apple ID
    2.     Go to Settings>iCloud, scroll to the bottom of the screen and click on Delete Account. Type in your current Apple ID password when asked, and follow the prompts to delete the iCloud account
    3.     Sign out of Messages: go to Settings>Messages>Send & Receive, click on your Apple ID, and then on Sign Out
    4.     Sign out of FaceTime: go to Settings>FaceTime, click on your Apple ID and then on Sign Out
    5.     Go back to Manage your Apple ID and sign in with the old Apple ID and your current password. Change the Apple ID back to the new email address. You may need to verify it again
    6.     Go back to Settings>iCloud and sign in with your new ID
    7.      Do the same with Messages and FaceTime
    Cheers,
    GB

  • Programmatically Changing Waveform Graph and the number of plots

    I have a waveform graph that needs to display a variable number of plots based on the number of inputs.  Is there a way to programmatically adjust the number of plots displayed on the waveform graph?

    You need to use the Active Plot input before the Plot Name(s).  Property nodes are read from top to bottom so you can alternate several pairs of ActPlot,Plot.Name;ActPlot,Plot.Name, etc.  Then wire 0,1,2,etc to the ActPlot and your chosen name to the Plot.Name right under it.  Or, use for loops and index the ActPlot input.  See the pic.
    Using LabVIEW: 7.1.1, 8.5.1 & 2013
    Attachments:
    plot names.JPG ‏37 KB

  • How to change screen icons and album art?

    Does anyone know of an application, or otherwise know how to change the screen icons individually, one at a time? I don't mean adding or changing to a different summerboard. Ideally, I'd like to change a few of the icons to either photographs from my files, or to some other photo or drawing of my choosing.
    While I'm asking questions, another one concerns album covers in iTunes. ITunes gives you the ability to add more than one cover to an album but I can't see how to display one other than the original one added. Also, I can't see how to delete a cover once it's been added. I was manually adding cover art for albums that didn't have any and accidently put the wrong picture on one album. Nothing I have been able to do allows me to delete that picture. I did add the correct picture but I can't get it to display. Of course, whatever I do in iTunes I'd like for it to properly sync to the touch.
    Any ideas???

    As for your first question, there is no way of changing icons without jailbraking, which we're not allowed to discuss here.
    To view more than one artwork, simply click on the little arrow appearing in the artwork window.
    To delete it, right-click, Get Info -> Artwork and delete the picture.
    Hope this helps.

  • Black Screen (source and preview) when using GPU acceleration (CUDA) [NVidia GTX 780M]

    Hi guys!
    I am running Adobe Premiere Pro CS6 on Windows 7 (Ult) on a machine equipped with NVidia GTX 780M (4 GB VRAM) graphics card. The source and the preview monitors are both black if I select GPU accelerated rendering. There is a yellow bar above the timeline clips, I can hear the sound tracks, but there is no image. If I choose the Software Only rendering (CPU) then I do see the image as well, but the real-time playback and rendering times are awful!
    At first, the application would not allow me to use the GPU acceleration using NVidia’s CUDA processing. Once I entered my video card name in the “cuda_supported_cards.txt” file in the Adobe Premiere Pro CS6 folder I was able to choose between Mercury Playback Engine Software Only and Mercury Playback Engine GPU Acceleration CUDA.
    I tried downgrading the video card driver to the previous stable version and reinstall Pr – no go. How do I make Adobe Premiere Pro CS6 work with my NVidia GTX 780M video card?
    Your insight is appreciated!
    P.S. I used to work on a different machine equipped with NVidia GTX 670M card (which is also missing from the officially supported Pr CS6 cards list) and I never had any issues of this nature with that laptop.

    Hi there,
    As stated before, I had the same problem. Apparantly the solution for me was to check the Nvidia settings. My setup has both an onboard GPU and a Nvidia GPU (on purpose specifically for video editing and gaming). Normally the system should switch to Nvidia automatically. However, the Nvidia settings for Premiere where set to favor the onboard GPU. After changing this. everything works fine again!
    kind regards. Bart

  • Screen nice and bright when using power thru the adapter

    Hi there
    I am a new macbook user and I am wondering if this is 'normal'. I have two questions about the screen on my macbook.
    When I use the macbook while it is plugged into the wall outlet my screen is nice and bright. If I unplug it, and the battery is fully charged, the screen dims. If I plug it back into to outlet the screen brightens. Is this "normal?"
    Second question. If I am near a lamp or other light source my screen brightens. If the lamp is turned down to a dimmer setting, the screen on my mac dims. Is that normal?
    I'm sorry if these questions sound ridiculous

    Both of Your questions concern System Preferences, the first one You can set in Energy Saver, tag Battery.
    The second You can control in System Preferences, Monitors panel.

Maybe you are looking for

  • HP 6520 wifi won't connect

    Just took a 6520 out of the box, trying to set it up/print to it from a windows 8.1 computer, after returning a 4620 printer that had the same problem. Ran the setup software. Setup software can't even manage to figure out what wireless network the c

  • Configure Time Machine with FIOS MI424MR?

    I can disable Wi-Fi on MI424MR but I don't know how to set it up as bridge? Any help?

  • How force LR to regenerate preview?

    When I edit an existing TIFF file in the PSE Editor, save and close the file in PSE and return to LR LR does not always regenerate the preview so the changes I made in the Elements editor are visible in LR. How can I force LR to regenerate the previe

  • Code Problem!  Please Help!

    Hello Everyone, I have a problem with a code that I have been working on for days. I keep getting this error message: exception in thread main java.lang.ArrayIndexOutOfBoundsException I would really appreciate your help. I am a beginner java programm

  • Display items on a form

    Dear composite experts, Within GP I have three blocks: 1) Enter Purchase Order ID 2) Get Purchase Order details 3) Display Purchase Order details For the third step I created a Web Dynpro Form as CO. On this form I have placed some header fields and