+ Reply to Thread
Results 1 to 5 of 5

Write to Columns from userform

  1. #1
    Registered User
    Join Date
    09-18-2008
    Location
    Glasgow
    Posts
    10

    Write to Columns from userform

    Need a bit of help.

    I'm new to using VBA. I have a userform that when I click command button submit it send the data on the userform to the next available row in the worksheet. However I want it to send the info to the next availble column in the worksheet. I have been shown the code below but it doesn't work.

    Any ideas would be appreciated

    Please Login or Register  to view this content.
    Last edited by Andy Pope; 09-18-2008 at 07:17 AM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481
    In what way does it not work?
    Do you get errors or is the data in the wrong place?


    Edit: I corret your code tags. You need to place your actual code within a single pair of tags rather than putting a pair of tags at the start AND finish
    Last edited by Andy Pope; 09-18-2008 at 07:22 AM.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    09-18-2008
    Location
    Glasgow
    Posts
    10
    It comes up with Run time error "9". Subscript out of range

    the the debugger refers to this part of the code

    Please Login or Register  to view this content.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481
    Does the workbook have a sheet called Sheet4

  5. #5
    Registered User
    Join Date
    09-18-2008
    Location
    Glasgow
    Posts
    10
    Yes. I've tried on another sheet and it seems to be working now. Must have been a problem with the worksheet

    Thanks.

+ 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. How to adress columns
    By adiman84 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-23-2008, 03:18 AM
  2. Hide and Unhiding Columns
    By papastyle3 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-23-2008, 11:03 AM
  3. VLOOKUP - Can you match columns other than column 1?
    By longfisher in forum Excel General
    Replies: 4
    Last Post: 03-04-2008, 10:07 PM
  4. Hiding/Unhiding columns based on a dropdown list
    By jim_0068 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-12-2007, 11:57 AM

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