Opening New IE Tab Instead Of A New Window?

Feb 6, 2013

i have a macro that performs the same search in many websites, opening a new ie window for any site. What i want now is opening a new tab in IE instead of a new window. To illustrate, here go some code:

VB:
Dim PartNo As String 'Declaro la cadena de texto que determina la busqueda
Public Sub BuscarPLCCenter()
Dim IE As InternetExplorer

[Code]....

I would like that all of these procedures opened a new IE tab to do the search, cause actually it opens like 15 windows at a time and is not user friendly enough.

View 4 Replies


ADVERTISEMENT

Opening A File Without Opening A Workbook

Apr 17, 2007

I have a need to open a file from my companies intranet. My current method was to open said file via the method that the recorder gave me. However, I would like ot be able to open a said file without having to start open another workbook.

This is the path:
[url]

So the command is this:
Workbooks.Open [url]

Links are not actual links

So what I need to know. Is how can I open this file without opening a workbook. I haven't been able to use the VB "Open Statement" to open a file and I don't believe that I've been successfull using the Filesystem object either.

View 9 Replies View Related

Yes/No Pop-up Window

Aug 28, 2006

I have a certain macro which copies data from one file to the other. There are several target files (refering to a given month each) and one source file. The user chooses a month from a drop down list in the source file which modifies a certain cell. The value of this cell decides on which of the 12 target files will be opened to paste the data to. The macro also copies the value of a cell which refers to the current date (=TODAY()) This number is then compared with a the range (value between two pints in time: start and end date of a given month). All I need is some sort of a pop-up window with a header i.e. WARNING. and the window text: You are about to send the information to a file which does not refere to the current month, are you sure you want to perform this action" and two buttons YES and NO in case the value of the current date does not match the range set up by the starting and ending of a given month in the target file. The button YES would then do waht ever the code that was placed before the pop-up window said, save the aplication and close it, and the NO button would simply close the aplicatiown without saving it. Something like that:

Sub Export()
'the whole code describing the action to be taken
If Range("A1").Value >= Range("A3").Value And Range("A1").Value <= Range("A2").Value Then
'here the A1 cell refers to the current date and cells A2 and A3 to the start and the end date of the month
End Sub

View 4 Replies View Related

Tip Messaging (pop-up Like Window Perhaps)

Oct 30, 2008

I am using Excel 2003 and wish to make a tip message (pop-up like window perhaps) if a value of a particular cell is exceeded.

View 2 Replies View Related

Closing Immediate Window

Apr 18, 2009

Is there any way to have a macro, that is started from the immediate window, close the immediate window when it's done. My macro closes the immediate window, but as soon as it ends, the immediate window reopens and my cursor is inside it.

View 14 Replies View Related

Invisible Window

Nov 23, 2009

There is a column with a formula and a list validation, and an adjacent hidden column with numbered ids. When moving into the list validation cell the Worksheet_Selection_Change event code saves information about the Target cell - value, address, formula. When a value has been obtained from the list the Worksheet_Change event code looks up a belonging id in a lookup table and put this in the hidden id cell, and puts the saved formula back into the list validation cell. This makes the sheet (or window) unmanagable.

When I move around the sheet I can see the cell name in the Name Box, but the sheet itself is not visible. The only way to display the sheet is to add a new window (Window - New Window), choose the first "frozen" window (Window - 1. window) and quit this window. Then the new window is ready for use, but of course with the same limitations as the newly quitted one. Ring a bell, someone?? The funny thing is that in this workbook I also use the same functionality in another sheet without any problems.

View 3 Replies View Related

Set Window Size With VBA.

Feb 1, 2010

I'm looking for a way to use VBA to set the window size upon opening the workbook. When the document opens, there should be two windows, each taking up half the screen and each on a particular tab.

Currently, if I save the workbook with the window settings I want, when I open it, both windows are maximized. When I hit the restore button, they go back the settings with which they were saved, which is what I want it to look like as soon as it's opened. Also, a bonus would be for the code to determine the screen size, so it can fill the screen no matter what monitor/computer it's opened on.

View 4 Replies View Related

Show Window With A1?

Jan 18, 2012

I have 3 worksheets in a workbook. How can I have the view go to A2 and View that on each worksheet? I do a Range("A2").Select But, it still shows the window on another column - row.

View 2 Replies View Related

New Window On The Taskbar

Nov 27, 2006

i was recently upgraded to Excel 2003 and have found that whenever i open more than one workbook, it opens in a new window on the taskbar (similar to opening another application)... I remember having this in my previous version of excel but i can't for the life of me remember how i switched this off?

View 9 Replies View Related

Minimised Window

Jul 24, 2008

I open up Excel by double clicking on a file, it opens but it just has a grey background and the file I opened is displayed as a small 1 inch stip in the top left - just a title bar with the windows maximise, minimise and close buttons.

What ever I click I can't see any of the cells!

View 9 Replies View Related

Active Window

May 8, 2007

I've built a macro to run a loop that opens excel files, prints certain sheets and closes them. I have the macro working - to some degree. here is my code (this is excel):

Sub RMPProducer()

OldPath = "S:RMBS_Performance_Analytics Analysis1 Staging Folder For Monthly Model Templates2007200704VVDeals"
Dim t As Workbook
Dim s As String
Dim a As Window

With Application.FileSearch
.NewSearch
.LookIn = OldPath
.SearchSubFolders = False
.Filename = "*.xls"
.MatchTextExactly = True
If .Execute() > 0 Then
For i = 1 To .FoundFiles.Count
s = .FoundFiles(i)

I have 2 problems. First problem is that I am trying to add a function to make the window close once its finished printing. This actually works - but it limits my loop iterations from i = 1 to 2 (so it only runs 2 times and I'm not exactly sure why). If I don't include the statement - this can run for up to 7 - 8 times (these are very large files) then excel runs out of memory. Unfortunately, i can't set the loop to run from i = anything other than one.

So What I would prefer is to be able to make the "ActiveWindow.close" command work - because this way I can run the entire loop. But I'm not sure how to. I tried window referencing, I tried adding a new active Window so when the file opens, its opening in the active window already, but nothing works.

Preferably, I need to be able to reference both windows, as my next macro will involve referencing 2 windows (one static - always open) and the other the loop above.

View 4 Replies View Related

Edit Window Not Working ..

Apr 29, 2009

Heres a strange thing, My latest version of a spreadsheet i have design has got a small problem. When clicking on a cell, nothing appears in the edit window, and when you double click on the cell to edit the contents the data disappears.

This only happens on one sheet within a workbook of 7 pages. The werid thing is that it does not happen on the version before

Any ideas how this could of happened and is there a fix?

View 2 Replies View Related

Create A Popup Window

Nov 18, 2009

Is it possible to create a popup window that contains drawing objects?
I created a "form" with the objects, but I don't know how to use the form.

I want to have this image, or form, or whatever it is, to popup when the user clicks a cell. Is this possible without getting into programming?

Can it be hidden and then made visible when the cell is selected?

View 8 Replies View Related

Workbooks Open In Same Window

Feb 4, 2014

I have a workbook open. When I try to open a separate workbook, it opens already opened workbook (basically linking the workbooks as one). I want to have my workbooks on two separate screens this is preventing that. How to unlink these workbooks.

View 1 Replies View Related

Excel VBA - How To Get ID From NEW OPEN IE Window

Apr 21, 2014

I'm trying to find an ID from a new open Internet Explorer Window.

I know that the ID that I'm trying to search for is "rBeginMonth_BeginDate", but my code always says that it's empty.

The code below is partially of what I've done.

[Code] .....

View 1 Replies View Related

VBA That Opens Excel In New Window

May 3, 2014

I have a project were i have to make a macro and place in a workbook such that as soon as i open that excel file

1. excel workbook is opened in New Excel window
2. Ribbon is hidden for this new window.

So when user closes this excel window there is no problem with other workbook ribbon, as there are open in different window

I have tried with code stated below it hides the ribbon but new excel window is not open

Private sub Workbook_open()
Application.ExecuteExcel4Macro "Show.toolbar(""Ribbon"",False)"
End Sub

View 2 Replies View Related

Macro For Pop-up Window With Picture

Jul 19, 2007

A macro, which would allow me to click on a particular cell, which will have an ID number (1 through 34), each ID# is attributed to a particular employee. These ID# are located in my spreadsheet in columns B & G, and the ID #'s begin initially in B6 & G6 and continue downward to B34 & G34. These ID #'s are used in a vlookup type formula which covers 35 pages of this workbook. What I'd like to do is be able to click on any cell between B6& B34 (and/or the same in G6&G34), which has a particular ID # in it and have the photo of that particular employee designated with that ID# pop up in a window generated by the macro. I hope this makes sense! Any help would be greatly appreciated. My 1st sheet in my workbook is my "lookup" tab, which contains my ID# list and numbering sequence affiliated to each employee. So I'm not sure if I'd need to put the photograph of the employee in a column next to the employees name or have a folder designated with all my pictures in a certain directory, etc.

View 11 Replies View Related

Disable Minimization Of App Window

Jul 27, 2009

I am looking for an event that would capture the minimization of the Excel application window so that I can force it to stay maximized.

View 13 Replies View Related

Floating Navigation Window

Sep 9, 2009

I want to create a floating window in excel that can contain a series of macro buttons (12 total)

I'd like to see if this window can be opened with a hyperlink or a single macro button on a spread sheet.

View 11 Replies View Related

Display A Window In Startup

Oct 11, 2009

Would anyone be able to tell me how to display a promp at an excel workbook startup so that users agree to the terms and conditions?

View 4 Replies View Related

Append Value To Url In IE Using Window Handle?

Nov 2, 2009

I'm trying to manipulate a URL in an already opened IE browser window. In a nutshell, I need to change "http://www.excelforum.com" to "http://www.excelforum.com/this-is-the-new-part"

The code prior to this does the following:
- Opens a new instance of IE
- Enters the username and password required to get into the site
- Scrapes the source code, imports it into Excel, and parses the data
- Finds a row based on the current date and some text
- Extracts from that row a unique identifier...
- Obtains the window handle ID for the instance of IE displaying the website

Now I need to add the unique identifier to the url. I cannot open it in a new tab or instance of the browser, as it revokes back to the login screen. I was assuming that the best way to do this would be to get the window handle, then just send a "tab" to get back to the URL, and enter the new URL. If there's any other way to do this, I'm all ears. Otherwise, how can I send the keys using the window handle?

View 2 Replies View Related

Automatic Window Sizing

Feb 9, 2010

I have the this code in ThisWorkbook to open the workbook with two windows, each with a different tab showing, and each taking up half the screen:

View 3 Replies View Related

Clear VBA Editor Immediate Window

Jan 26, 2008

Any way that the VBA Editor Immediate window from within VBA code?

View 9 Replies View Related

How To Display Save As Window

Nov 17, 2011

I'm trying to get the below code to save the workbook before the macro continues. I would like for the Save As browser window to be displayed so that the user can select a location to save in.

It would be great if it could maintains the existing name and file type.

The code I attempted below will save the file I just don't know where to!!

Code:

Sub Clear_Quarter_Call()
'Activates password message box
If UCase(InputBox("Enter Password 'This Action Cannot Be Undone' ")) "2222" Then Exit Sub

[Code]....

View 9 Replies View Related

VBA To Open Print Window

Mar 23, 2012

This code takes all the data from a listbox and throws it into a sheet so that I can print it. I would like the print window to open ready to print this one sheet but allow the user to make sure the right network printer is selected before hitting print.

Code:
Private Sub cmdPrint_Click()
Dim i As Long
Dim ws As Worksheet
If Me.lstPrintRooms.ListCount = 0 Then
MsgBox "The are no rooms in the list to print"

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

View 2 Replies View Related

VBA Switching Window Focus?

Mar 18, 2014

I have a macro that launches another program (Windows Title - Storm). I then use sendkeys to have it export the file to an excel file. (This launches another instance of excel.) I want to be able to focus back to (Storm) so I can sendkeys to close the program down. I can get it to the end result using sendkeys, but I am trying to have it switch back to the Storm application so the user does not need to close it manually.

View 2 Replies View Related

Check A Particular Window Is Open

Oct 8, 2006

Is it possible for excel to check that a particular window is open and if it is then carry on with a macro

View 9 Replies View Related

Cascading Window Tabs - Can You

Aug 20, 2007

My spreadsheet has approx 50 tabs, can I cascade them so that I don't have to scroll across all the time to find the one I want (ie, can they all be shown in the one window)

View 8 Replies View Related

Single Step Window

Oct 31, 2007

I do have code, but this thing (which appears on the Excel window, not the VBE window) doesn't seem to be connected to any of my code.

What is this, and what caused it to suddenly pop up on me in Excel?

View 9 Replies View Related

Open In A Simple Window

Nov 8, 2007

Is there a way that I can make an excel sheet and save it in a way that when it's opened the person JUST sees the cells in a really simple window...

Not sure if I'm confusing people in how I explain this... but basically I don't want it to show the scroll bars, the A B C D etc and 1 2 3 4 etc, the tool bars... etc. JUST the specified cells in a sheet.

View 9 Replies View Related







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