+ Reply to Thread
Results 1 to 8 of 8

Re Format Columns and Rows

  1. #1
    Forum Contributor
    Join Date
    07-21-2013
    Location
    washington dc
    MS-Off Ver
    365 MSO
    Posts
    473

    Re Format Columns and Rows

    Hi,

    I currently receive data in the format A2:D4 although many more rows. I would like to be able to automate the current format to format I manually arranged in F2:G8. It would be too cumbersome to do it manually for all the data. Not sure if there is a formula, or some type of Macro that can do this? Any help would be greatly appreciated.

    How can I attach an Excel sheet?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Re Format Columns and Rows

    Please Login or Register  to view this content.
    I'm interested in starting a career working with VBA, if anyone knows of any opportunities!

  3. #3
    Forum Contributor
    Join Date
    07-21-2013
    Location
    washington dc
    MS-Off Ver
    365 MSO
    Posts
    473

    Re: Re Format Columns and Rows

    Thank you, that works. Can you explain your code?

  4. #4
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Re Format Columns and Rows

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    07-21-2013
    Location
    washington dc
    MS-Off Ver
    365 MSO
    Posts
    473

    Re: Re Format Columns and Rows

    Thank you. How would I change the Macro If I wanted to Copy format that data to a different tab called "Formatted Tab". Not sure if below would be right. Also,let's say I want instead of data to fill in column F and G, to be A and B?

    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Re Format Columns and Rows

    Change the name of your source data sheet on the first line to match your actual sheet name, if needed. I have it creating a new formatted tab for you every time you run the code.

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    07-21-2013
    Location
    washington dc
    MS-Off Ver
    365 MSO
    Posts
    473

    Re: Re Format Columns and Rows

    Thanks. Sorry for all the questions. Where in your formula does it state to start the data in the newly created field in column A row 3? Also, how can I have a header in a1, and b2 if you create a new sheet?

  8. #8
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Re Format Columns and Rows

    Where in your formula does it state to start the data in the newly created field in column A row 3
    This code is in format Cells(Row Number, Column Number):

    Please Login or Register  to view this content.
    So I start j at row 3 and increment it after every copy, and the 1 is column A.

    Also, how can I have a header in a1, and b2 if you create a new sheet?
    Like so:

    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. Selected Rows/Columns Save into PDF format
    By x3n0nx in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-22-2016, 09:57 PM
  2. [SOLVED] Changing columns and rows back to A,B,C format
    By Don Adeks in forum Excel General
    Replies: 3
    Last Post: 04-16-2015, 08:14 AM
  3. [SOLVED] VBA Macro for Transposing Columns to Rows on Predetermined Format
    By dh507249 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-24-2015, 06:41 AM
  4. VBA set Protect Sheet - Format Columns and Rows
    By dellschipper in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-11-2009, 05:53 PM
  5. Format Data from Columns to Rows, Within a Cell
    By chopin2256 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-21-2009, 11:22 PM
  6. using VBA to hide columns and rows that do not have cells with a specific format
    By fecurtis in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-14-2008, 05:47 PM
  7. Need help with a macro to format rows and columns
    By jamesstorx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-14-2007, 03:20 PM

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