VBA Display Both Screen Resolutions For Dual Monitors?

Jun 26, 2014

I am trying to create a macro that checks and displays the screen resolution for both the Main monitor and the secondary monitor.

Currently I have this code that displays the resolution on the main screen only:

Declare PtrSafe Function GetSystemMetrics32 Lib "User32" _
Alias "GetSystemMetrics" (ByVal nIndex As Long) As Long
Sub ScreenRes()
Dim lResWidth As Long
Dim lResHeight As Long
Dim sRes As String
lResWidth = GetSystemMetrics32(0)
lResHeight = GetSystemMetrics32(1)
sRes = lResWidth & "x" & lResHeight
MsgBox sRes
End Sub

However I want to then display another message with the secondary display's resolution (or on the same message box).

View 9 Replies


ADVERTISEMENT

VBA - IE Sessions On Dual Monitors

Jan 15, 2014

I want VBA to open two separate sessions of IE on two separate displays.

I have not been able get the display part to work and not finding anything so i am not sure if i need separate sessions but would like to do so to be safe (doing it manually on the computers using i have to have separate sessions of IE to do full screen on the two monitors).

current code: (this opens two IE windows on full screen on the default monitor)

Code:
Sub Test()

Dim objIE As Object

Set objIE = CreateObject("InternetExplorer.Application")
objIE.Visible = True

[Code] .........

View 9 Replies View Related

Excel 2010 :: View Same Workbook On Dual Monitors

Apr 9, 2014

I believe that someone showed me once that you could view the same workbook on two monitors with the vien arrange all mode, you could make changes on both screens and the changes would be saved to the same file similar to arranging two views. I cannot rememebr how to do this or even if it is possible.

View 5 Replies View Related

Dual Monitors - Open PDF File And Push To 2nd Monitor?

Sep 26, 2013

I know what i need to do to get it to open the file I want. I dont know how I set the position of a file that i am opening. In this case a .pdf file.

I have searched and came up with a lot of info for userforms, but I am not working with a userform in this case.

View 1 Replies View Related

Force Splash Page To Show On 1 Of 2 Dual Monitors

Feb 3, 2008

I have a splash page I created and I work on dual screen monitors. Typically I have Excel open on the left monitor and my VBA window (alt-F11) open on the right. If I close my Excel workbook and reopen it, the splash page will always open on the screen that had the VBA window on last. In my case Excel opens on the left monitor and the splash page shows up on the right window. I would like to have the splash page open on the side that Excel opens on (in my case the left side). Wondering if there is some VBA code I can add in my splash page code that would allow me to override this default setting?

View 2 Replies View Related

UserForms And Different Screen Resolutions

Apr 1, 2004

How do you people deal with UserForms displaying correctly on different machines with different screen resolutions?

View 9 Replies View Related

Code Affects Screen Display!

Mar 2, 2009

I use the following piece of code to Hide/Unhide columns as required by a specific worksheet.

View 4 Replies View Related

VBA / Display Screen On Opening Workbook?

May 3, 2013

I have a great bit of code for a spreadsheet I'm working on by a board regular called Norie;

The code is;

Code:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
If ActiveSheet.Name "ThankYou" Then
Worksheets("ThankYou").Visible = xlSheetVisible
Application.Goto Worksheets("ThankYou").Range("A1"), True
Cancel = True
UserForm1.Show

[code]....

When I open the workbook it shows for about 1 second another sheet in the workbook rather than just instantly showing the "START" tab.
Is there any way to get over this to make this code 100% perfect?

I just really would love upon opening this workbook for the sheet that 1st comes into view to be the START SCREEN TAB, without any flash preview of another sheet.

View 2 Replies View Related

Prevent Display Of Hyperlink Screen Tip

Feb 19, 2009

I'm working with text boxes in Excel that have hyperlinks attached to defined names on a worksheet. Basically just to navigate around a large sheet.

They work fine, but when the mouse is hovered over the text box it automatically displays the address of the defined name, which looks messy and I want to get rid of it.

I have tried inserting a single space in the screen tip box, but that displays a small rectangular box. I have also tried "" hoping nullstring maybe interpreted as not to display, but it instead displays the speech marks.

Has anybody done this before? I've seen it done, but I have no idea how the model creator did it.

View 4 Replies View Related

Splash Screen - How To Display While Macro Runs

Sep 27, 2011

I have a splash screen I want to display while a macro runs. I've created all the necessary code based on information from this site but have a question about where to actually put the code as all the example I've seen are based on workbook open events.

I tried placing my code

UserForm1.Show

with in the macro I waned the splash screen to be displayed during but that doesn't work. Well, it does, but not as I intended. The splash screen pops up for the specified duration as part of the macro stopping the macro, then closes and the rest of the macro finishes running.

Do i need to call the splash screen from a certain point in the macro I wish it to be displayed during? I dont want the macro to stop running while the splash screen is showing.

View 1 Replies View Related

Active Cell Display :: Centering In The Screen

May 1, 2007

What is the syntax for centering in the screen whatever cell a value has been changed in or needs the users attention?

View 9 Replies View Related

Hyperlinks: Extract Display Text & Screen Tip

Dec 15, 2006

I have copied a webpage into excel It contains URL javascript link.

a) I wonder if I can copy this link out without keystroking each row.
b) When I point at the link, a few numbers come out. I want to extract these number out.

I am thinking of creating a macro so that it can be performed automatically because I have more than 300 rows.

View 5 Replies View Related

Excel Camera Tool - Print Preview Different From Display On Screen

Nov 27, 2012

I have place a camera-picture of a table on the right side of a chart. On the screen it looks great! (See below - with some redaction)

Problem Example.png

.... but when I print it the table expands off of the side of the chart. Scale is 100%, zoom is 100%, Excel 2010 (See below - with some redaction). Whether or not I have a print area does not seem to make a different in the problem. Also, it appears that this happens with any shape I put in that place, it's not specific to the camera tool.

Problem Example_Print Preview.png

View 8 Replies View Related

Create Search Facility That Will Run On Variable Functions And Display Information On Screen

Dec 23, 2013

I have an excel file with a large amount of employee data in it and want to create a search facility that will run on variable search functions and display the information on the screen

I want to be able to enter variable search functions as follows:

Employee Number; shows all information on employee
Division: shows all employees in division (possible from a list of all divisions)
Appraisal Eligibility : Applicable shows all the applicable employees
Job Role: shows all the employees with the same job role (possibly from a drop-list of all roles)

I know its easier in Access, but all records in Excel as a legacy and don't have time to create an access database currently.

View 1 Replies View Related

Display A Splash Screen Which Fades In And Then Fades Out And Closes Itself Leaving The Ap Showing

Jun 13, 2006

I am trying to display a splash screen which fades in and then fades out and closes itself leaving the ap showing. I have utilized code that I found wih permission to use but I'm still doing something wrong.

Option Explicit
'// This Userform code has everything you need to make a captionless userform
'// Fade In & Out

'// Transparency
Private Declare Function SetLayeredWindowAttributes _
Lib "user32" ( _
ByVal hWnd As Long, _
ByVal crKey As Long, _
ByVal bAlpha As Byte, _
ByVal dwFlags As Long) _
As Long

'// Title Bar
Private Declare Function GetWindowRect _
Lib "user32" ( _ ..............................

View 7 Replies View Related

Refresh Screen To Display On Form 1 After Exiting A Second Form

Mar 30, 2007

I have 2 forms. Form1 and Form2. I load Form1 to display. A button on Form1 calls Form2 to display. After I hit Cancel-Unload on Form2 it doesn't dissapear. How do I get rid of the residual image of pesky Form2 after I unload it and only display Form1 WITHOUT having to reload Form1 after Form1 calls Form2

In English
Form1 Displays
Form1 call Form2 to display
Form2 is unloaded by hitting a button on Form2
Form2 is unloaded, however, it's image still displays!!!

Need some way to force screen to refresh without having to unload Form1!

View 3 Replies View Related

One Cell Monitors The Other One

Dec 11, 2008

Here's the layout:

A (Title:Status)
Active
Closed
Active
Active

B (Title: Aging)
2 Days Old

I'm putting together an HR spreadsheet for interviews, showing the progression of a candidate. In column A, it's showing the status. In column B, it's calculating the age of the open recruiting process =NETWORKDAYS(F23,NOW()). This formula will go on for ages, if I don't stop it when the recuritment is over. So.....when I change the status to Closed in column A, I would like column B to stop counting the days automatically....

View 9 Replies View Related

Excel 2007 :: How To Open Different Files On Each Of Two Monitors

Feb 15, 2013

I run two monitors and am able to open different files on each monitor which is very handy.

This doesn't seem to work with Excel. If I have two different Excel files open I can only view one at a time. I can move across to the other monitor, but then can only view one at a time on that monitor - very frustrating.

When I was using Excel 2010 on my last job I was shown a clunky, round-about way of being able to open two Excel files, one on each monitor. (By opening one file, opening a new Excel document from there, and then opening the other Excel file from the new document, minimizing that file and dragging it to the other screen).

Now I am using Excel 2007 and am not able to view two different Excel files, one on each screen. how I can do this in Excel 2007?

View 6 Replies View Related

System Monitors Changes To The Spreadsheet And Then Performs Actions Accordingly

Jun 15, 2009

Macro: the system monitors changes to the spreadsheet and then performs actions accordingly. Example: If the value of column c = Bug, then it sets the value of G to Celeste and Column H to Kewill.

Could this macro be changed so that instead of having to enter "Celeste" in this code, it could set the value of column G to the value found in H5 on the sheet?

I tried replacing "Celeste" in the code with H5 but it did not work.

Private Sub Worksheet_Change(ByVal Target As Range)
'Declare variable
Dim iCol As Integer
'Look at the column number of the changed cell (Target)
Select Case Target.Column
'Column C
Case 3
Select Case Target.Value
'if "Bug" set iCol to 3 (Red)and change value of column G to "Celeste" and Column H to "Kewill"
Case "Bug": iCol = 3
Target.Offset(, 4).Value = H5
Target.Offset(, 5).Value = "KWL"................

View 9 Replies View Related

Creation Of A Program That Monitors Usage Of Spreadsheet Reports

Mar 27, 2007

I currently produce excel reports for my company but need to somehow monitor how many times they are accessed and, if possible, when and by whom. All these excel files are situated on a server that our company uses and all users systems are connected to this. We use office 2003 and Outlook as the emailing system. My guessing is that the programming would have to intiate the usage file, amend it, and then close it each time a report is opened.

For each of the files that I want this file to monitor, I have written the following program which essentially opens up the usage file 'EPoS Usage' which is a simple grid, enters an extra one to the relevant counter cell then closes it. I really need to include a date and time for each opening and, if possible, get a username as well. Here it is:

Private Sub workbook_open()
Application. ScreenUpdating = False
Workbooks.Open Filename:= _
"S:Newman CommonCATEGORY MANAGEMENT - RangesEPoS Usage.xls"
Dim Counter As Integer
Counter = Cells(2, 8)
Counter = Counter + 1
Cells(2, 8) = Counter
ActiveWorkbook.Save
ActiveWindow.Close
Application.ScreenUpdating = True
End Sub

View 3 Replies View Related

Application Onkey: Prevent Users From Using The Print Screen Or The Alt Print Screen Buttons On The Keyboard

Dec 29, 2009

I'm just looking to prevent users from using the print screen or the alt print screen buttons on the keyboard. I have this script that works if I use "39" (Right Arrow)but wont work if I use "42" (Print Screen Button).

View 5 Replies View Related

Dual Formatting For Cells?

Sep 15, 2014

I know how to format a cell so that if I type 5 it will say: 5 SF And then in another cell if I type 15, it will say: 15 Units

Is there any way possible to format a cell so that if I type (its actually calculated via formulas) these two numbers in one cell that it will format them both?

EXAMPLE: One cell that has 5, 15 will read: 5 SF and 15 Units

View 6 Replies View Related

Dual Formula In One Cell?

May 13, 2009

I have a spreadsheet, in columns A & B are some numbers. I'm subtracting B from A - =sum(b1-a1) in column C. Can a formula be written, if the sum is equal or greater than 8, it will display 1? If the sum is 7 or less, it will display the sum. Or, does this need to be in a different column?

View 2 Replies View Related

Dual Formulas In A Cell

Aug 17, 2009

One formula is already present in the cell to show a value or date. I also want to use a formula to populate the cell with a comment from the contents of another cell.

I know the individual formulas, but just need to know how I can use both of them to show the results in the same cell.

View 9 Replies View Related

Dual Vlookup Function

Jan 15, 2010

[IMG]file:///C:/Users/Paul/AppData/Local/Temp/moz-screenshot.png[/IMG]I need a fairly simple formula (I think) I have this table in another worksheet. I would like to be able to input select from a list "integrity" in A1 and from another list select "20" in A2 and then in A3 this mythical formula (if A1 = Integrity and A2 = 20, then 120%) I suppose i could write a ridiculously large if,then statement but I was thinking more of using a duel vlookup function.

View 9 Replies View Related

Dual Headings Match

Jun 21, 2007

TAKING A BIT FURTHER THE POST Find Min Value In Multiple Columns And Match The Header

Here's my problem: I am trying to find the MIN value in a column with dual headings and match the corresponding product which makes my formula with three criteria.

see the attachment to see the structure of the tables and further explanation.

View 4 Replies View Related

Dual Axis Chart

Jul 31, 2007

How can I turn this into a dual axis chart whereby it shows the number of current stores open (like it does right now) as a bar chart. But also as a line chart shows the store potential (%) - so for example, PSUN has 960 current stores and has a 96% store penetration rate.

View 9 Replies View Related

Dual Function Command Button?

Apr 3, 2012

I can accomplish what I want with the "Spin Button", but I'd really like to use the command button instead...

Can the command button be used for 2 functions?

Right now, I have a Spin Button, that performs this function:
Private Sub SpinButton1_spinup()
Range("E11").Formula = "=c11"

[Code]...

Is there a way to have the Command Button perform the same function? Not very familiar with VBA...I'd even prefer to go with the "Check Box"...but frankly, I simply don't know enough about the command functions to make it work.

View 3 Replies View Related

Dual Condition Lookup Over 20000 Rows

Apr 30, 2009

I have a 20000-row sheet generated by a daily report and I only want to work with about a quarter of this data; any rows that contain "PH4" in the M column. What's the best way to automatically single out this data to work with?

My initial solution was to create a seperate sheet to pull off all the columns with PH4 in the M cell, eg cell A8 would be:

=IF([WEB_StoSta_Rep.xls]Sheet1!$M8="PH4",[WEB_StoSta_Rep.xls]Sheet1!A8,"")

Then I could run lookups off that sheet. However, this feels like a sloppy solution to me, and Excel throws up an error when saving, unable to save external link values with available resources. Is there a better way of going about this?

View 10 Replies View Related

Dual-Condition Row Auto-Delete Macro

Jul 10, 2008

I browsed the first few pages of searching for "row delete macro" and couldn't find anything that suited my needs very much, so here goes:

What I need to do is automatically delete rows where the entries in column B (date) and column E (string) are the same. It is a very large group of data, so filtering is not exacly an option here.

Here is the twist on it...

I have a column F that contains either "Accepted-Active" or "Accepted-Closed". If I delete a bunch of rows that contain the same column B and E entries, I want to save the row that contains "Accepted-Closed", otherwise I don't particularly care which of the rows is saved.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved