Results 1 to 23 of 23

Thread: [RESOLVED] VB6 - Merge Cells in spreadsheet

Threaded View

  1. #18

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2007
    Posts
    341

    Re: VB6 - Merge Cells in spreadsheet

    Good morning Westconn1,
    I modified the code accordingly and got another "Run-Time error 1004 - Unable to set the RowHeight property of the range class" on the code below.

    Also, please look at the spreadsheet attachment. Is there any way I can get rid of the space(gap) that separates the line of text in the "Comment" row?

    Code that caused Runtime error:
    Code:
    .RowHeight = .RowHeight * Len(xlWksht.Range("A" & CStr(ii + 1)).text) / w
    And
    .RowHeight = .RowHeight * Len(xlWksht.Range("A" & ii + 1).text) / w
    Attached Files Attached Files

Posting Permissions

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



Click Here to Expand Forum to Full Width