+ Reply to Thread
Results 1 to 2 of 2

cell border in VBA

Hybrid View

  1. #1
    Registered User
    Join Date
    12-19-2010
    Location
    Serbia
    MS-Off Ver
    Excel 2003
    Posts
    7

    cell border in VBA

    I write code
    'copy the data to the database
    ws.Cells(iRow, 1).Value = Me.txtRB.Value
    ws.Cells(iRow, 2).Value = Me.txtOP.Value
    ws.Cells(iRow, 3).Value = Me.txtOPIS.Value
    ws.Cells(iRow, 4).Value = Me.cboJM.Value
    ws.Cells(iRow, 5).Value = Me.txtCJM.Value
    ws.Cells(iRow, 6).Value = Me.txtUK.Value
    ws.Cells(iRow, 7).Value = (txtCJM.Value * txtUK.Value)
    I put values in first empty row
    I don know how to make code for cell border

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: cell border in VBA

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

    Have you tried using the macro recorder whilst adding the required border formatting.

    You should then be able to adjust the recorder code to you existing code.
    Post back with the recorded code if you need more help.
    Cheers
    Andy
    www.andypope.info

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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