+ Reply to Thread
Results 1 to 4 of 4

Reset Command

Hybrid View

  1. #1
    Registered User
    Join Date
    02-17-2013
    Location
    Essex
    MS-Off Ver
    Excel 2003
    Posts
    10

    Post Reset Command

    I have the follow code to set cell AF8 to a blank cell

    Sheets("Main Sheet").Range("AF8").Value = ""

    Is it possible to have the following code write to cell AF8

    "=LOOKUP(2,1/(DATA!L1:L20212<>""),DATA!L1:L20212)"

    so the full code will read

    Sheets("Main Sheet").Range("AF8").Value = "=LOOKUP(2,1/(DATA!L1:L20212<>""),DATA!L1:L20212)"

    Many thanks

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,080

    Re: Reset Command

    Shouldn't that be

    Sheets("Main Sheet").Range("AF8").Formula = "=LOOKUP(2,1/(DATA!L1:L20212<>""),DATA!L1:L20212)"
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,080

    Re: Reset Command

    Shouldn't that be

    Sheets("Main Sheet").Range("AF8").Formula = "=LOOKUP(2,1/(DATA!L1:L20212<>""),DATA!L1:L20212)"

  4. #4
    Registered User
    Join Date
    02-17-2013
    Location
    Essex
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Reset Command

    Hi Special K

    I should have said ealier the above code came back with an error, ive entered your code and it still shows an error

+ 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. Reset Value in cells to 0 after clicking the command button
    By STU22 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-27-2012, 11:47 AM
  2. [SOLVED] Command button to reset ComboBox selection
    By Darrenh1238 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-09-2012, 06:14 AM
  3. Command Button To Reset Values
    By Strugggler in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-18-2009, 10:54 PM
  4. Macro/command button to reset all filters in pivot table
    By schueyisking in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-29-2008, 11:30 AM
  5. How to reset all combobox ant textbox with one command?
    By cshm in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-28-2008, 11:31 AM

Tags for this Thread

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