+ Reply to Thread
Results 1 to 11 of 11

how to write A VBA to created content List from Sheet 1 to Sheet2

  1. #1
    Registered User
    Join Date
    09-28-2020
    Location
    singapore
    MS-Off Ver
    2008
    Posts
    64

    how to write A VBA to created content List from Sheet 1 to Sheet2

    Hi anyone can Help,

    I need a VBA to create a content List from Sheet1 to Sheet2
    I need to print preview Sheet2
    Print Preview in Portrait,Narrow Margins, Horizontally, Page setup, Fit to 1Page1Tall


    Sheet1
    FZ_DSB`C{T%4LA$M~1BI8XH.png

    Sheet2
    0Z829K%G_SW6C@[Y)%PXV$B.png
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by KCTOH; 09-28-2020 at 11:28 AM.

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,302

    Re: how to write A VBA to created content List from Sheet 1 to Sheet2

    Please, Please do not mix merged cells and VBA
    Revisit your layout using tabular form without merged cells.
    read the link attached, advice will save you potential future frustration
    torachan.


  3. #3
    Registered User
    Join Date
    09-28-2020
    Location
    singapore
    MS-Off Ver
    2008
    Posts
    64

    Re: how to write A VBA to created content List from Sheet 1 to Sheet2

    Hi Torachan,

    That is not similar to my situation, I need VBA to created sheets 2, data from sheets 1 to transform into sheets 2, arrange by Po#.
    For the PO# that cell no merge is ok, output on sheets 2 as per photo.

  4. #4
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,302

    Re: how to write A VBA to created content List from Sheet 1 to Sheet2

    I will pass on this one - someone else may pick it up.
    I have enough experience to know when to leave someone to their own demise.
    torachan.

  5. #5
    Registered User
    Join Date
    09-28-2020
    Location
    singapore
    MS-Off Ver
    2008
    Posts
    64

    Re: how to write A VBA to created content List from Sheet 1 to Sheet2

    hi Torachan,

    Can help me done a bit on it.

  6. #6
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,302

    Re: how to write A VBA to created content List from Sheet 1 to Sheet2

    if i did it your list would have to look like the attached file.
    I do not work with merged cells.
    torachan.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-28-2020
    Location
    singapore
    MS-Off Ver
    2008
    Posts
    64

    Re: how to write A VBA to created content List from Sheet 1 to Sheet2

    OK, torachan done without merged cell

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: how to write A VBA to created content List from Sheet 1 to Sheet2

    Code for macro
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  9. #9
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,302

    Re: how to write A VBA to created content List from Sheet 1 to Sheet2

    The Order # is in a merged cell, if this plays up just remove the two lines (merging and centering).
    macro in sheet one module on green button
    torachan.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    09-28-2020
    Location
    singapore
    MS-Off Ver
    2008
    Posts
    64

    Re: how to write A VBA to created content List from Sheet 1 to Sheet2

    Thanks, Torachan, appreciate actual what I wanted.

  11. #11
    Registered User
    Join Date
    09-28-2020
    Location
    singapore
    MS-Off Ver
    2008
    Posts
    64

    Re: how to write A VBA to created content List from Sheet 1 to Sheet2

    Thank you, kvsrinivasamurthy

+ 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. Replies: 7
    Last Post: 05-15-2018, 10:23 AM
  2. [SOLVED] Write content of active cell of Sheet1 in a cell of Sheet2
    By F_WT in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-25-2018, 09:32 AM
  3. Copying a template sheet's content to a series of newly created sheet tabs.
    By ZootlyData in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-17-2016, 04:01 AM
  4. Replies: 2
    Last Post: 09-22-2014, 12:52 PM
  5. [SOLVED] Search content from cell A1 in Sheet2 and select the content found
    By excelcandy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-04-2013, 06:45 PM
  6. [SOLVED] How to write the content of two different TextBox in one cell in excel sheet
    By Mimouscha in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-26-2013, 10:54 PM
  7. Replies: 1
    Last Post: 02-24-2006, 05:10 PM

Tags for this Thread

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