+ Reply to Thread
Results 1 to 2 of 2

Using array to transfer data of different data types to worksheet

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Using array to transfer data of different data types to worksheet

    I have a macro where i open up a file. I then test to see if the data in the file is "good". If it is good then i transfer the data to another file. Then i open up another file and do it again.......repeating this for every file in a given directory.

    RIght now i take all the data that i want to transfer and store it into a single string array. What i am finding is that i may not want to do this. The data i am transferring has many different data types such as dates, text, numbers........etc. SInce i am dealing with data sent to me from another country i think converting dates to strings and then putting string into my sheet is causing a problem.

    So i want to know is there a way of having an array with different data types?
    Last edited by welchs101; 12-19-2011 at 08:38 AM.

  2. #2
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Using array to transfer data of different data types to worksheet

    When doing it the following way you will keep the datatypes

    Please Login or Register  to view this content.
    Please take time to read the forum rules

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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