+ Reply to Thread
Results 1 to 7 of 7

Please help me to change array id to new array id

  1. #1
    Registered User
    Join Date
    10-14-2012
    Location
    japan
    MS-Off Ver
    Excel 2003
    Posts
    7

    Question Please help me to change array id to new array id

    Dear All,

    Please help me:

    ex: now i have an array

    id value

    (1) "abc"
    (2) "def"
    (3) ""
    (4) ""

    Now, i need the array as:

    id value

    (0) "abc"
    (1) "def"
    (2) ""
    (3) ""

    so, i'm a new bee in VBA.
    Please, help me.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Please help me to change array id to new array id

    How are you creating your array? Can you show your code?
    Last edited by AlphaFrog; 11-13-2012 at 05:07 AM. Reason: typo

  3. #3
    Registered User
    Join Date
    10-14-2012
    Location
    japan
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Please help me to change array id to new array id

    Quote Originally Posted by AlphaFrog View Post
    How are you creating your array? Can you shoe your code?
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Now, the id now
    ex:
    (1) abc.xls
    (2) abcd.xls

    I need change an array to:

    (0) abc.xls
    (1) abcd.xls

    Thanks you so much for your answer.

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Please help me to change array id to new array id

    hi guangnv, welcome to Excelforum, I would not even ask why you need that strange "conversion":

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-14-2012
    Location
    japan
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Please help me to change array id to new array id

    Quote Originally Posted by watersev View Post
    hi guangnv, welcome to Excelforum, I would not even ask why you need that strange "conversion":

    Please Login or Register  to view this content.
    Thank sir for your answer.
    I mean that, in VBA can support change array as following:

    m_listOutputFiles(1) : "xyz.xls"
    m_listOutputFiles(2) : "abc.xls"

    =>

    m_listOutputFiles(0) : "xyz.xls"
    m_listOutputFiles(1) : "abc.xls"
    Attached Images Attached Images

  6. #6
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Please help me to change array id to new array id

    Maybe try something like this...

    Please Login or Register  to view this content.
    This will split all the .xls files within the string tempname into a zero based array.

  7. #7
    Registered User
    Join Date
    10-14-2012
    Location
    japan
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Please help me to change array id to new array id

    Quote Originally Posted by AlphaFrog View Post
    Maybe try something like this...

    Please Login or Register  to view this content.
    This will split all the .xls files within the string tempname into a zero based array.
    Thank you so much for your answer.
    I will try it. :D.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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