+ Reply to Thread
Results 1 to 5 of 5

save multiple range cells to a file

  1. #1
    Registered User
    Join Date
    11-07-2012
    Location
    israel
    MS-Off Ver
    Excel 2003
    Posts
    2

    save multiple range cells to a file

    Hi Experts,

    I would like to save multiple range cells to a file.

    My code is working fine as long as the cells range are in the same column.

    I tried to use the "Union" method but I got the "1004 error"

    Attached here is my code

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: save multiple range cells to a file

    Hi elistein,

    Try:
    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    11-07-2012
    Location
    israel
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: save multiple range cells to a file

    Hi xladept

    Thank you for your fast reply.

    Unfortunately the program still not working.

    Still got the "run time error 1004" The command cannot be used on multiple selections"

    All the best

    elistein

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: save multiple range cells to a file

    Give this a try

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: save multiple range cells to a file

    Hi elistein,

    I didn't realize that it was choking on the copy - this worked for me:

    Please Login or Register  to view this content.
    Last edited by xladept; 11-07-2012 at 08:35 PM.

+ 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.6.0 RC 1