+ Reply to Thread
Results 1 to 5 of 5

how to dimension variables as %

  1. #1
    Registered User
    Join Date
    06-03-2010
    Location
    Sinaloa, Mexico
    MS-Off Ver
    Excel 2003
    Posts
    20

    Question how to dimension variables as %

    Hi, i have just get in to the wolrd of macros, andi i need some help.

    I did a workbook, with 10 worksheets, those are related with formulas and they give results in each worksheet and in one worksheet that i called RESUME, to collect all the most importants cell outpouts. So i did a user form to put data inlets, in diferent cells in diferent worksheets, but, some of them are percentaje form, and i don`t know how to dim this variable.

    hope you can help

    thank you
    Last edited by napo537; 06-07-2010 at 02:47 PM.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: how to dimension variables as %

    There is no Percentage type - you should use a Double and format the cells to display as percent.
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    06-03-2010
    Location
    Sinaloa, Mexico
    MS-Off Ver
    Excel 2003
    Posts
    20

    Question Re: how to dimension variables as %

    Quote Originally Posted by romperstomper View Post
    There is no Percentage type - you should use a Double and format the cells to display as percent.
    Could you please be more specific?, i have no idea how to di that.

    And how could i, put input data, in a worksheet in a diferent cell.

    it appears to work fin if i put this

    sub X

    worksheets(1).Range("c8").select
    activecell.formulaR1C1=textbox1

    end sub

    **if im the activesheet is number one, it changes its value, but if i want to change a value in a diferent sheet, even though i put worksheet (2) o any value, it doesn`t work

    Thank you in advance

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: how to dimension variables as %

    You don't need to select - you can just add the data directly. For example:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-03-2010
    Location
    Sinaloa, Mexico
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: how to dimension variables as %

    Quote Originally Posted by romperstomper View Post
    You don't need to select - you can just add the data directly. For example:
    Please Login or Register  to view this content.
    I did wath you said, it worked, in fact i use your sintax to figure out how to put in some currency data, and now thank to you i can put the data in every sheet that i want.

    I will try to continue programming this userform, now i have to try out with optionbuttons y checkbox, putting some if functions to select some cells or to put some data in some cell depending on the optionbutton selected o checkbox marked.

    thank you very much.

    we`ll keep in touch

+ 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