+ Reply to Thread
Results 1 to 1 of 1

Thread: new macro for opening files

  1. #1
    Registered User
    Join Date
    09-19-2011
    Location
    Birmingham
    MS-Off Ver
    Excel 2003 - 07
    Posts
    51

    new macro for opening files

    hi guys/gals
    got a new problem i know you lot can help with :P,
    i have a spreadsheet that i want to take info from a file and dump it in,
    there is a few files i use so i was going to use a drop down list to name the file i want the macro to use for example
    FileA = Range("A1").value
    luckily the way the file is saved the only sheet in there will be the same as the file title
    i now need to open the file would it be simpily
    Select.C:\Users\u5563233\Desktop\"FileA".open
    the code i have atm for a little test is
    FileA = Range("A1").Value
    'Select.C:\Users\u5563233\Desktop\"FileA".open
    Sheets(FileA).Select
        Range("a1:b30").Select
        Application.CutCopyMode = False
        Selection.Copy
    but it ant working ( because its S***)
    any help would be mint its an ongoing project so am working my way through.
    Many thanks
    Kieran
    Last edited by Kezwick; 10-11-2011 at 09:43 AM. Reason: Wrong Section

+ Reply to Thread

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.2.0