+ Reply to Thread
Results 1 to 5 of 5

Copy/paste from file opened by macro

  1. #1
    Registered User
    Join Date
    10-15-2008
    Location
    Moscow
    Posts
    5

    Copy/paste from file opened by macro

    Help, I really need yor help

    I have a macro which opens two different hyperlinks in excel. Opened workbooks have are named like 1.asp and 2.asp. Both contains only one spreedsheet. I need to copy these spreedsheets to the Workbook, from which they are opened.
    Is it possible?

    Thanks in advance.
    Last edited by VBA Noob; 10-17-2008 at 04:32 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Hi,

    Yes, just set up two workbook variables for the current book and the one you want to open, say

    Please Login or Register  to view this content.
    Then after you've opened up the first workbook, use the

    Please Login or Register  to view this content.
    Then repeat for your second workbook adjusting ranges to suit

    HTH

  3. #3
    Registered User
    Join Date
    10-15-2008
    Location
    Moscow
    Posts
    5

    Unhappy

    Thanks, but it does not help

    I will be more specific

    Opening macro

    Sub CBR123()
    Workbooks.Open "http://cbr.ru/credit/101.asp?regnum=2306&when=0&dt=20080901"
    End Sub

    Then I need to copy worksheet from opened workbook. Is it possible?

    Or is it possible to open that link in entire workbook?

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,493
    Try this
    Please Login or Register  to view this content.
    This code goes into Workbook GetSheet

  5. #5
    Registered User
    Join Date
    10-15-2008
    Location
    Moscow
    Posts
    5
    Thanks, man

    Thats really what I want (at least now)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. File browsing in macro - how to change default start location?
    By ctmurray in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-01-2008, 11:28 PM
  2. Macro to import a flat file using 'text to columns'
    By miniweld in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-04-2008, 04:37 AM
  3. How Can The Macro Rename Files When The Original File Name Changes Everday
    By np123345 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-01-2008, 06:59 PM
  4. Macro is unlocking locked cells... but I didn't tell it to.
    By rziegler in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-08-2008, 06:22 PM
  5. Macro Security Message when opening file, but I've removed the macro
    By jwalitt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2007, 12:14 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1