+ Reply to Thread
Results 1 to 7 of 7

Using Findformat

Hybrid View

stuartgb100 Using Findformat 05-04-2015, 01:02 PM
Richard Buttrey Re: Using Findformat 05-04-2015, 01:16 PM
stuartgb100 Re: Using Findformat 05-04-2015, 01:20 PM
Arkadi Re: Using Findformat 05-04-2015, 02:18 PM
stuartgb100 Re: Using Findformat 05-04-2015, 02:54 PM
Arkadi Re: Using Findformat 05-04-2015, 03:07 PM
stuartgb100 Re: Using Findformat 05-04-2015, 03:36 PM
  1. #1
    Forum Contributor
    Join Date
    04-23-2015
    Location
    UK
    MS-Off Ver
    Office Pro Plus 2021
    Posts
    120

    Using Findformat

    Hi,

    This (given) code finds a cell with its top border set,
    but doesn't if it holds a value:

    With Application.FindFormat
        .Clear
        .Borders(xlEdgeTop).LineStyle = xlContinuous
        .Borders(xlEdgeTop).Weight = xlThin
        .Borders(xlEdgeTop).ColorIndex = xlAutomatic
    End With
    I've tried removing ".Clear" but it makes no difference.

    Thanks,
    Stuart.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Using Findformat

    Hi,

    Would you upload the workbook so that we can see the request in context and explain what you expect to happen and when.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    04-23-2015
    Location
    UK
    MS-Off Ver
    Office Pro Plus 2021
    Posts
    120

    Re: Using Findformat

    Richard,

    Sorry to be dumb, but how to upload the workbook, please?

    Cheers.

  4. #4
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Using Findformat

    If you type a reply and click "Go Advanced" in the bottom right, you will have more options... one is a paperclip that will let you attach.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  5. #5
    Forum Contributor
    Join Date
    04-23-2015
    Location
    UK
    MS-Off Ver
    Office Pro Plus 2021
    Posts
    120

    Re: Using Findformat

    Thanks Arkadi,

    With luck, the workbook is attached.

    Regards.
    Attached Files Attached Files
    Last edited by stuartgb100; 05-04-2015 at 03:05 PM. Reason: Incorrect Workbook

  6. #6
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Using Findformat

    There is no code in this... findformat sets parameters about what to find... in itself it doesn't search, so without more code I'm not sure what you need done here?

  7. #7
    Forum Contributor
    Join Date
    04-23-2015
    Location
    UK
    MS-Off Ver
    Office Pro Plus 2021
    Posts
    120

    Re: Using Findformat

    Sorry - wrong workbook

    Here is the correct wb.

    Can I delete the original wb ?
    Attached Files Attached Files

+ 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. Use FindFormat on a Range
    By stuartgb100 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-30-2015, 02:01 PM
  2. [SOLVED] FindFormat Accounting Error
    By yusunghee in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-14-2013, 12:02 PM
  3. Looping FindFormat with relative cell update
    By adamspain in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-23-2009, 09:29 AM
  4. [SOLVED] FindFormat with Borders not Working
    By xenovah@gmail.com in forum Excel General
    Replies: 0
    Last Post: 06-06-2006, 12:10 PM
  5. FindFormat w/ multiple spreadsheets
    By BarryQ in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-28-2005, 03:13 PM

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