+ Reply to Thread
Results 1 to 5 of 5

Vba reconstruct codes

  1. #1
    Registered User
    Join Date
    07-17-2013
    Location
    Quezon City
    MS-Off Ver
    Excel 2010 and 2013
    Posts
    75

    Vba reconstruct codes

    Can someone help me to reconstruct my code or make it more simpler?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Vba reconstruct codes

    Maybe:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-17-2013
    Location
    Quezon City
    MS-Off Ver
    Excel 2010 and 2013
    Posts
    75

    Re: Vba reconstruct codes

    Yey! It works. Thanks yudlugar.

    I have a question. But why, when I run this macro[dataTableChanger] and run another macro[......] the speed process become slow.

    P.S. -> Another Macro like importing data for short [COPY/PASTE] in the TABLE.

  4. #4
    Valued Forum Contributor AlvaroSiza's Avatar
    Join Date
    09-19-2007
    Location
    Staffordshire
    MS-Off Ver
    2007
    Posts
    591

    Re: Vba reconstruct codes

    Thought I would add that in your initial declarations, you set forth:
    Please Login or Register  to view this content.
    which I'm guessing you assumed meant that both would be dimensioned as Single. In VBA, you must declare each explicitly, else the variable takes on the default Variant type. So what you actually declared was:
    Please Login or Register  to view this content.
    Hope this helps
    Perhaps it was the Noid who should have avoided me...
    If you are satisfied with my solution click the small star icon on the left. Thanks
    1. Make a copy of your workbook and run the following code on your copy (just in case)
    2. With excel open, press ALT+F11 to open the Visual Basic Editor (VBE). From the "Insert" menu, select "Module".
    3. Paste the code from above into the empty white space. Close the VBE.
    4. From the developer tab, choose "Macros", select the Sub Name, and click "Run".

  5. #5
    Registered User
    Join Date
    07-17-2013
    Location
    Quezon City
    MS-Off Ver
    Excel 2010 and 2013
    Posts
    75

    Re: Vba reconstruct codes

    Quote Originally Posted by AlvaroSiza View Post
    Thought I would add that in your initial declarations, you set forth:
    Please Login or Register  to view this content.
    which I'm guessing you assumed meant that both would be dimensioned as Single. In VBA, you must declare each explicitly, else the variable takes on the default Variant type. So what you actually declared was:
    Please Login or Register  to view this content.
    Hope this helps
    AlvaroSiza, thank you for your giving me a guide how to declare a variable. Yes, I declare it both Single but now I will change it from what you have taught me.

    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. Replies: 0
    Last Post: 10-09-2013, 07:59 PM
  2. Combining vba codes makes the previous codes broken !
    By MDPLUS in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-26-2013, 10:00 AM
  3. Reconstruct sequence and fill gaps with zeroes
    By rover233 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-01-2013, 01:46 PM
  4. Reconstruct data from graph
    By Grafit in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-12-2012, 02:24 PM
  5. Replies: 6
    Last Post: 11-28-2006, 01:08 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