Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 23rd, 2013, 01:32 PM
Registered User
 
Join Date: Jul 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Switch Between two Open Excel Files

I'm new to this and this part which seems like it should be simple to accomplish is driving me around the bend.

I have 2 part lists. I can Open each with a macro dialog box, select a bunch of cells to copy from one, but can't see how to switch to the other already open sheet to paste them down so I can compare them for differences.

Thank you for any and all help in advance.

JP.
 
Old July 30th, 2013, 10:36 PM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

Hi

You can try copying the selected content

Code:
Set oWS = ThisWorkbook.Sheets(4)
    OWS.Range("A1:A2").Copy ThisWorkbook.Sheets(5).Range("A1")

It would be better if you can explain in brief your requirement..


Cheers
Shasur
__________________
C# Code Snippets (http://www.dotnetdud.blogspot.com)

VBA Tips & Tricks (http://www.vbadud.blogspot.com)





Similar Threads
Thread Thread Starter Forum Replies Last Post
2010 excel VBA changing links to external excel files andrewpage500 BOOK: Excel 2007 VBA Programmer's Reference ISBN: 978-0-470-04643-2 0 September 20th, 2012 08:42 PM
Excel VBA Charts - Switch Row/Column Tom_Insure Excel VBA 2 September 28th, 2011 07:53 PM
Generating Excel FIles from resource Files abinashpatra ASP.NET 1.0 and 1.1 Basics 0 July 28th, 2008 02:07 AM
open password for excel files in VBscript lambin VB Databases Basics 0 January 24th, 2008 05:05 AM
Merge many excel files into one excel files Roshanjoshi2001 Excel VBA 2 November 14th, 2007 06:23 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.