Results 1 to 10 of 10
  1. #1
    Senior Member
    Join Date
    Jun 2009
    Gender
    Male
    Posts
    732

    Exclamation Excel Simple Program Problem


    Good Afternoon guyz... this is my first time posting here in the Software Category.. I want ur help guys... this is how it goes:


    Akong gusto sa akong Excel is kada open nko, gusto nko automatic mu-increment na ang ID Number..
    Bali number ra jd akong gusto i auto-increment kay kada number lahi2x man ug information gni...
    Nangita kos Google pero wla man makahatag gud or naa lng koy wa masabtan tingai...

    Any idea guys? help me, this is very important for my Project..

    Simple ra jud akong gusto, Kada open sa file, mu-auto increment na ang ID number nya.... ang limit sa id number is Unlimited diay... thank you... i'll be visiting this thread from time to time.. thank you istoryan...

  2. #2
    Senior Member
    Join Date
    Jun 2009
    Gender
    Male
    Posts
    732
    Wlay mga idea? Asa nmn tong mga Expert dri sa istorya?....

  3. #3
    Bro, what number are you talking about? Is it a number found in one of the column in your excel sheet? If it is , then you need to add macro objects for incrementation.

    Perhaps this link will point you in the direction you want.http://www.excelforum.com/excel-prog...ent-count.html

  4. #4
    i-upload imong excel file bro.. tabangan tka...

  5. #5
    Kindly try this solution:

    1. Create a new Excel WorkBook
    2. Goto A1, type ID:
    3. Save the workbook (any filename you want, make sure the file supports macros, else it won't work)
    4. Press Alt+F11
    5. When VBA IDE is loaded, double-click "ThisWorkbook"
    6. On the (General) drop-down listbox, select Workbook
    7. Type the code below:

    Code:
       Application.Goto ActiveWorkbook.Sheets("Sheet1").Cells(1, 2)
        
        If IsEmpty(ActiveCell.Value) Then
            ActiveCell.Value = 1
        Else
            ActiveCell.Value = ActiveCell.Value + 1
        End If
    8. Save the code, close the VBA editor.
    9. Save the Excel Workbook again, then close the whole Excel Workbook
    10. Open Excel Workbook, enable Macros if you are asked to.

    Let me know what you think.

    Resources | Reference: http://support.microsoft.com/kb/291308
    Last edited by ChaosOrb; 10-13-2010 at 12:31 AM.

  6. #6
    Senior Member
    Join Date
    Jun 2009
    Gender
    Male
    Posts
    732
    Quote Originally Posted by ChaosOrb View Post
    Kindly try this solution:

    1. Create a new Excel WorkBook
    2. Goto A1, type ID:
    3. Save the workbook (any filename you want, make sure the file supports macros, else it won't work)
    4. Press Alt+F11
    5. When VBA IDE is loaded, double-click "ThisWorkbook"
    6. On the (General) drop-down listbox, select Workbook
    7. Type the code below:

    Code:
       Application.Goto ActiveWorkbook.Sheets("Sheet1").Cells(1, 2)
        
        If IsEmpty(ActiveCell.Value) Then
            ActiveCell.Value = 1
        Else
            ActiveCell.Value = ActiveCell.Value + 1
        End If
    8. Save the code, close the VBA editor.
    9. Save the Excel Workbook again, then close the whole Excel Workbook
    10. Open Excel Workbook, enable Macros if you are asked to.

    Let me know what you think.

    Resources | Reference: How to select cells/ranges by using Visual Basic procedures in Excel
    It works! thank you kaayo ninyo guys... hehehe... salamat jd kaau... naa pakoy follow-up question sir, unsa-on pag autoenable sa macro? para dli na mu-prompt gni once inig open nko sa file? thank you jd... naa ra jd sa istorya.net tnan...hehe...

  7. #7
    nice.... mingaw nakog VBA.... its been a while since ive seen such code.... ive made a excel sheet before katong naa pako sa innodata... i have to kay maka buang kung mag manual...

  8. #8
    nabzy: If you are using Office 2007, go to Excel Options, then click on Trust Center. After that, click on the Trust Center Settings. Another window will popup, then select Macro Settings, then select the appropriate option to enable macro.
    Last edited by ChaosOrb; 10-13-2010 at 05:42 PM.

  9. #9
    Senior Member
    Join Date
    Jun 2009
    Gender
    Male
    Posts
    732
    @ChaosOrb: Thank you so much... hehe... solved na...

    naa pakoy umaabot na questions.. mu-posr ra ko dri nga thread ghpon ha..

  10. #10
    Quote Originally Posted by nabzy View Post
    @ChaosOrb: Thank you so much... hehe... solved na...

    naa pakoy umaabot na questions.. mu-posr ra ko dri nga thread ghpon ha..
    No problem and you're welcome, I'm glad to be of helped! Cge mag.paabot ko sa imong next question.

  11.    Advertisement

Similar Threads

 
  1. GUYS I NEED HELP FOR PROGRAM PROBLEMs
    By heavenknws in forum Windows Software
    Replies: 4
    Last Post: 10-27-2012, 02:25 AM
  2. Replies: 16
    Last Post: 04-21-2012, 11:26 PM
  3. im having simple lan problem. di magkita ang 2 PC
    By gabs in forum Networking & Internet
    Replies: 4
    Last Post: 10-16-2010, 04:36 PM
  4. Simple program to print out forms, willing to pay.
    By LytSlpr in forum Programming
    Replies: 18
    Last Post: 06-27-2008, 08:07 AM
  5. uninstalled program problem
    By gregsin in forum Software & Games (Old)
    Replies: 16
    Last Post: 03-24-2006, 04:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top