+ Reply to Thread
Results 1 to 12 of 12

macro to export range of cell not working

  1. #1
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    macro to export range of cell not working

    Dear sir
    please kindly find my attached file with export button that not working for exprt range of cell have value from A1:G7
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: macro to export range of cell not working

    something wrong with your autofilter criteria
    with good criteria, or without autofilter it works

    Kind regards
    Leo

  3. #3
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: macro to export range of cell not working

    You're autofilter is causing the problem.
    What value is supposed to be filtered ?
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  4. #4
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: macro to export range of cell not working

    when column A is empty not fill any column related to this cell
    meaning if A2 is empty leave B2:G2 is empty

  5. #5
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: macro to export range of cell not working

    how can solve it

  6. #6
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: macro to export range of cell not working

    filtration is to export only cell have value
    for example if row 3 is empty and 2,4,5 have value its export 2,4,5 row without any space empty row
    hope you understand me now

  7. #7
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: macro to export range of cell not working

    also want only export data in range of A1:G7

  8. #8
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: macro to export range of cell not working

    Your autofilter like this

    Please Login or Register  to view this content.
    solves your problem.

  9. #9
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: macro to export range of cell not working

    what about change range to become A1:G7


    Quote Originally Posted by bakerman2 View Post
    Your autofilter like this

    Please Login or Register  to view this content.
    solves your problem.

  10. #10
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: macro to export range of cell not working

    I hope this is what you mean otherwise I don't understand the question.

    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: macro to export range of cell not working

    Dear Bakerman its work good now many thanks for your help and solution

  12. #12
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: macro to export range of cell not working

    You're welcome and thanks for rep+.

+ 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. [SOLVED] Limit (working of) macro to a specified cell range
    By RandomVBA in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2016, 07:46 AM
  2. [SOLVED] macro to export range of column to PDF
    By mazan2010 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-30-2016, 02:32 PM
  3. VBA macro to export specific range of cells to CSV
    By branys in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-29-2016, 10:58 AM
  4. Trying to Export Cell Range to TXT with a Macro
    By hammerhead13 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-19-2014, 03:40 PM
  5. Replies: 0
    Last Post: 03-19-2014, 10:33 PM
  6. XML Export macro not working...
    By mathiasX in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2010, 04:25 PM
  7. [SOLVED] macro to export a range to a text file?
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-21-2006, 09:30 AM

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