+ Reply to Thread
Results 1 to 17 of 17

export range of cell to new workbook code modification

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

    export range of cell to new workbook code modification

    Dear Expert
    Can you please modify the following code to do the following
    1- only export range of data from Column A : column G
    2- date in column D export it as text but in format DD,MM,YY
    3-export all data in the same format
    4- if can add line to show confirmation message that saved
    HTML Code: 
    Last edited by mazan2010; 03-17-2018 at 01:40 PM.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: export range of cell to new workbook code modification

    How about
    Please Login or Register  to view this content.

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

    Re: export range of cell to new workbook code modification

    it copy data without format
    and also copy date as 43094 but i need it text but like dd,mm,yy
    Last edited by jeffreybrown; 03-22-2018 at 07:06 PM. Reason: Removed full quote

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

    Re: export range of cell to new workbook code modification

    and can make message pop that if there is any file present in the same location and if you need to replace or give me choice to add with another name
    and also can in this message show how many row have data

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: export range of cell to new workbook code modification

    How about
    Please Login or Register  to view this content.

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

    Re: export range of cell to new workbook code modification

    it give me error like in attached photo
    Attached Images Attached Images
    Last edited by jeffreybrown; 03-22-2018 at 07:06 PM. Reason: Removed full quote

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: export range of cell to new workbook code modification

    What is the error message & is col D in the original file actual dates, or just text that look like dates?

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

    Re: export range of cell to new workbook code modification

    Quote Originally Posted by Fluff13 View Post
    What is the error message & is col D in the original file actual dates, or just text that look like dates?
    i don't know when i run macro its give me this error

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

    Re: export range of cell to new workbook code modification

    Quote Originally Posted by Fluff13 View Post
    What is the error message & is col D in the original file actual dates, or just text that look like dates?
    yes column D is my date column starting from row 2

  10. #10
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: export range of cell to new workbook code modification

    Can you please upload a test file?

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

    Re: export range of cell to new workbook code modification

    Quote Originally Posted by Fluff13 View Post
    Can you please upload a test file?
    please see my attached file
    and there is problem after i activate the file i found the file size increase i don't know what happen
    Attached Files Attached Files

  12. #12
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: export range of cell to new workbook code modification

    Thanks for the file, the problem was that you have blank rows.
    Try
    Please Login or Register  to view this content.

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

    Re: export range of cell to new workbook code modification

    its work now but the problem is size of the exported file is large around 25 mega
    in my original file in range of row 300 have array formula but only data value can be range of 50 row ? its the problem or what ?
    also count of the row have data give me incorrect number in my example the data only in 49 row but it give me 88 row?
    Last edited by jeffreybrown; 03-22-2018 at 07:06 PM. Reason: Removed full quote

  14. #14
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: export range of cell to new workbook code modification

    Does it work as expected on the test file you supplied?

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

    Re: export range of cell to new workbook code modification

    Quote Originally Posted by Fluff13 View Post
    Does it work as expected on the test file you supplied?
    yes but in my original file with lot of array formula and other normal formula give me incorrect count

  16. #16
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: export range of cell to new workbook code modification

    Hello mazan2010,

    Don't quote whole posts -- it's just clutter. If you are responding to a post out of sequence, limit quoted content to a few relevant lines that makes clear to whom and what you are responding

    For normal conversational replies, try using the QUICK REPLY box below.
    HTH
    Regards, Jeff

  17. #17
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: export range of cell to new workbook code modification

    Ok, try
    Please Login or Register  to view this content.

+ 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. modify code that export range of cell to cuurent location without macro or formula
    By mazan2010 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-25-2017, 01:28 PM
  2. vba - Export cell range to image on desktop! Help with code
    By ironfelix717 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-15-2017, 06:33 AM
  3. How to export/import VBA code from one workbook to another?
    By jGKpZ8a33sPrnqX8fam7 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-09-2017, 01:26 PM
  4. Replies: 4
    Last Post: 12-19-2014, 06:50 PM
  5. [SOLVED] VBA modification to refer to a cell on 1 worksheet to populate a range on another
    By gwd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-24-2014, 04:05 AM
  6. [SOLVED] Export Cell Values in a range to a new workbook.
    By Aris in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-01-2014, 05:59 AM
  7. Modification of Code to record old value of a cell
    By MannyP in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-20-2013, 08:06 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