+ Reply to Thread
Results 1 to 6 of 6

Create new Excel sheet containing data from current sheet.

  1. #1
    Registered User
    Join Date
    09-30-2009
    Location
    England
    MS-Off Ver
    Excel 2013
    Posts
    19

    Question Create new Excel sheet containing data from current sheet.

    Hello everyone,

    I currently have a spreadsheet containing IP addresses and network information for a number of computers. Every now and again we have to import a huge number of these into a spreadsheet that can be imported. This follows a set format where the table headers are always the same accompanied by the data below.

    Not sure if the spaces between rows will be a problem but they exist in the current spreadsheet so will have to try and find a way to get around it.

    I would like to be able to run some VBA to export from my current spreadsheet, create a new file and add data into the desired format. This can then be saved and used.

    I have attached an example so you can see what I mean.

    Thanks in advance for any help!
    Andy
    Attached Files Attached Files

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Create new Excel sheet containing data from current sheet.

    So, you want to translate Data_Sheet into New_Sheet?

    Where are the NETZ_MANDANT and DOMAIN values coming from - are these constant?
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    09-30-2009
    Location
    England
    MS-Off Ver
    Excel 2013
    Posts
    19

    Re: Create new Excel sheet containing data from current sheet.

    Hi Olly,

    Yes you are right, they are constants.

    I basically need to take data from only certain columns in the data sheet, create a new sheet with headings and put the data into that sheet minus the gaps as in the original data sheet.

    Thanks

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Create new Excel sheet containing data from current sheet.

    Try something like:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-30-2009
    Location
    England
    MS-Off Ver
    Excel 2013
    Posts
    19

    Re: Create new Excel sheet containing data from current sheet.

    Olly you are a genius! That works great for the example.

    I will try and modify it to work with my actual sheet and will hopefully get what we need.

    Rather than saving it as a new tab in the current document it would be better if we could create a new excel spreadsheet and then bring up the save As dialogue.

    Will keep you posted,

    Thank you so much
    Andy

  6. #6
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Create new Excel sheet containing data from current sheet.

    Yeah, easy to maniulate the data on the current worksheet, then save as a new file, instead of copying the worksheet first.

    Shout if you need further help with it.

+ 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. how to copy columns of another sheet with the column data of current sheet
    By amethystfeb in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-28-2014, 11:28 PM
  2. Replies: 4
    Last Post: 12-27-2012, 05:31 AM
  3. Copy Sheet / Create & Name New Sheet / Insert Before a Sheet / Paste Data
    By thinkspac in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-12-2012, 02:27 PM
  4. Pulling Information in seperate sheet based on data in current sheet
    By joekunin in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 06-03-2009, 05:06 AM
  5. Replies: 8
    Last Post: 02-03-2007, 01:41 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