Results 1 to 4 of 4

revise macro to use cell reference

Threaded View

  1. #1
    Registered User
    Join Date
    12-20-2004
    Posts
    29

    revise macro to use cell reference

    hi all,


    I have the code below:


    Sub Macro1()
    '
    ' Macro1 Macro
    ' Macro recorded 15/01/2004
    '

    Workbooks.Open Filename:= "Book2.xls"
    Range("A:B").Copy Destination:=Workbooks("Book1").Range("A:B")
    Windows("Book2.xls").Close
    MsgBox ("Completed Copying")
    End Sub


    I want to revise this macro, so that instead of Range(A:B), it will get the range from a cell (let's say from A1). So if the value in A1 is E:F, then range E:F is copied ..etc

    many thanks,
    Last edited by adnan buran; 04-26-2005 at 05:03 AM.

Thread Information

Users Browsing this Thread

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

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