+ Reply to Thread
Results 1 to 19 of 19

data vertical to horizontal than extract the sheet & save in reference folder

  1. #1
    Forum Contributor
    Join Date
    04-19-2015
    Location
    pakistan
    MS-Off Ver
    2013
    Posts
    335

    data vertical to horizontal than extract the sheet & save in reference folder

    Dear all

    Pl needs your help on this, in attached sheet in sheet 1 all data in vertical I want result in sheet 2 like mention, data which is column B to H want in horizontal and numbers in column A repeat mention time, if some column cell is empty than number of column A is not need to repeat….
    In sheet 2 data in column C & D is constant it will show like it is in front of all,
    At the end data extract to separate workbook by 199 each and save to C:\Users\nabeelak\Desktop\New folder (2) with the sheet name of SECH in excel1997-2003 format…

    Nabeel
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,517

    Re: data vertical to horizontal than extract the sheet & save in reference folder

    This should do
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    04-19-2015
    Location
    pakistan
    MS-Off Ver
    2013
    Posts
    335

    Re: data vertical to horizontal than extract the sheet & save in reference folder

    Dear jindon
    this is good & it is fulfilling some requirement what about last point..??

    nabeel

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,517

    Re: data vertical to horizontal than extract the sheet & save in reference folder

    Add 2 lines
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    04-19-2015
    Location
    pakistan
    MS-Off Ver
    2013
    Posts
    335

    Re: data vertical to horizontal than extract the sheet & save in reference folder

    dear Jindon
    this code is saving whole file in said folder, i want 199 each in workbook and each sheet name should be SECH like workbook name..pl

    Nabeel

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,517

    Re: data vertical to horizontal than extract the sheet & save in reference folder

    What do you mean by "SECH like workbook name"?

    Please Login or Register  to view this content.
    Last edited by jindon; 02-06-2017 at 07:38 AM. Reason: test procedure was edited.

  7. #7
    Forum Contributor
    Join Date
    04-19-2015
    Location
    pakistan
    MS-Off Ver
    2013
    Posts
    335

    Re: data vertical to horizontal than extract the sheet & save in reference folder

    dear jindon
    yes like workbook name, when i run this macros this starts creates file and contentious creates files, it should stop when all number has completed..??

    when i stop VBA, my self i need to close all files one by one...!!it should not just save file in said folder macro free....pl look into

    Nabeel
    Last edited by gondal; 02-06-2017 at 08:53 AM.

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,517

    Re: data vertical to horizontal than extract the sheet & save in reference folder

    At the end data extract to separate workbook by 199 each and save to C:\Users\nabeelak\Desktop\New folder (2) with the sheet name of SECH
    I really don't understand what you are trying to say.

  9. #9
    Forum Contributor
    Join Date
    04-19-2015
    Location
    pakistan
    MS-Off Ver
    2013
    Posts
    335

    Re: data vertical to horizontal than extract the sheet & save in reference folder

    dear Jindon
    your code is working almost as per my need, all the file are saving in folder with 199 number in each file,which is correct, it should create almost 13 files which contain 199 numbers each file from all data which is almost 2434 (all this working as per my need)....now issue is this when i run macros,created files are open and all files are saved with VBA which is i do not want (it should macro free file) and after complete running the VBA i am closing the file one by one and it is also not saving in SECH sheet name

    Nabeel

  10. #10
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,517

    Re: data vertical to horizontal than extract the sheet & save in reference folder

    Change to
    Please Login or Register  to view this content.
    It should not contain any macro in newly created workbook.

  11. #11
    Forum Contributor
    Join Date
    04-19-2015
    Location
    pakistan
    MS-Off Ver
    2013
    Posts
    335

    Re: data vertical to horizontal than extract the sheet & save in reference folder

    dear Jindon

    VBA is not showing for run, pl see the attached

    nabeel
    Attached Files Attached Files

  12. #12
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,517

    Re: data vertical to horizontal than extract the sheet & save in reference folder

    ................................
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    04-19-2015
    Location
    pakistan
    MS-Off Ver
    2013
    Posts
    335

    Re: data vertical to horizontal than extract the sheet & save in reference folder

    dear jindon

    now its working good, two small issue is remaining 1, its is changing my sheet 2 header which is not (in column A & B) & second issue, last file which creates with 47 numbers is still remain open( all the files should close after activtiy except original)...
    All other maters working exactly as i want

    Nabeel
    Last edited by gondal; 02-06-2017 at 10:31 AM.

  14. #14
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,517

    Re: data vertical to horizontal than extract the sheet & save in reference folder

    Change to
    Please Login or Register  to view this content.

  15. #15
    Forum Contributor
    Join Date
    04-19-2015
    Location
    pakistan
    MS-Off Ver
    2013
    Posts
    335

    Re: data vertical to horizontal than extract the sheet & save in reference folder

    dear jindon
    headers totally disappears in sheet 2..??

    Nabeel

  16. #16
    Forum Contributor
    Join Date
    04-19-2015
    Location
    pakistan
    MS-Off Ver
    2013
    Posts
    335

    Re: data vertical to horizontal than extract the sheet & save in reference folder

    dear jindon
    job done sir,
    sorry it was my mistake, it is working, thnx a lot great temperament, skill, knowledge and understanding..
    pl check only last created file still remain open all other done with the great effort of you....
    Gondal
    Last edited by gondal; 02-06-2017 at 11:43 AM.

  17. #17
    Forum Contributor
    Join Date
    04-19-2015
    Location
    pakistan
    MS-Off Ver
    2013
    Posts
    335

    Re: data vertical to horizontal than extract the sheet & save in reference folder

    dear jindon

    i find some issue with below provided code hopefully you will help that when i give first run of code this is working normally but when i changed the data in sheet1 (specially when i reduce data)and run again this code only adding new data at top and other remain same in sheet2, infact i want when i changed data and run the code only given data show previous should be disappear, pl look into

    HTML Code: 
    Gondal
    Attached Files Attached Files

  18. #18
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,517

    Re: data vertical to horizontal than extract the sheet & save in reference folder

    Add one line
    Please Login or Register  to view this content.

  19. #19
    Forum Contributor
    Join Date
    04-19-2015
    Location
    pakistan
    MS-Off Ver
    2013
    Posts
    335

    Re: data vertical to horizontal than extract the sheet & save in reference folder

    thanks jindon greatful to you, this is as per my need now

+ 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] extract excel sheet and save in reference folder
    By gondal in forum Excel Programming / VBA / Macros
    Replies: 26
    Last Post: 05-27-2016, 12:59 PM
  2. Extract data from a vertical and horizontal Data Table as an Average.
    By Koddy in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 3
    Last Post: 02-15-2015, 04:35 PM
  3. Replies: 2
    Last Post: 01-16-2015, 06:39 AM
  4. Convert Horizontal data to Vertical - loop through files in folder
    By aciccarelli in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-09-2014, 12:13 PM
  5. Horizontal autofill from vertical data different sheet
    By Chieps in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 06-04-2013, 11:09 AM
  6. Extract data from a horizontal range with blanks and create a vertical list
    By dommcg in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-07-2013, 10:41 AM
  7. Copying data from vertical to horizontal & keep cell reference
    By heatherfeather in forum Excel General
    Replies: 2
    Last Post: 04-24-2011, 01:47 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