Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Dec 2000
    Location
    Montreal, Quebec, Canada
    Posts
    115
    Thanks
    0
    Thanked 0 Times in 0 Posts

    variable for number of columns in a table (Word XP)

    Hi gang,
    I created a macro that asks the user how many columns he needs to create a table. I did this using an Input box and it worked just fine.
    I want to do the same thing using a dialog box but it am missing something. I used a text box and the value it returns seems to be wrong. I get an error message saying "the number must be between 1 and 63".
    What have I missed?
    tks

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: variable for number of columns in a table (Wor

    Can you post the part of the code that tries to assign the TextBox.value to whatever is giving the error message? Either your text is a very large number or it isn't converting properly to a number.

  3. #3
    2 Star Lounger
    Join Date
    Feb 2001
    Location
    Wellington, New Zealand
    Posts
    143
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: variable for number of columns in a table (Wor

    Are you sure that you're not just trying to specify too many columns? I recall that 63 is the maximum number of columns that a Word XP table can have.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •