+ Reply to Thread
Results 1 to 3 of 3

Formula "might slightly" change in Macro - how do I account for it?

  1. #1
    Registered User
    Join Date
    11-15-2013
    Location
    Newquay, Cornwall
    MS-Off Ver
    Excel 2010
    Posts
    67

    Formula "might slightly" change in Macro - how do I account for it?

    Hello all. Complete VBA noob here, and new to putting together macros for Excel, although many years ago I used to write DOS based macros!!

    I am near the end of quite a large macro that is so far working ok. Just a little stumped as to how I go about this bit......

    Column A has order numbers in it. The order number will only appear once for each assembly. If that assembly is made out of several different parts, then there will be a blank in Column A until the next order number appears for the next assembly.

    So A2 could have an entry, and A3-6 will be blank. Then the next order number will be on A7. Normally I select blanks, and then enter "=A2" in A3, then just copy and paste the formula all the way down the column, and then unfilter, and all the blanks are filled in.

    However, on the odd occasion, the first cell for the Formula entry could be A3/4/5 etc. Is there any way of saying to excel "whatever the cell number before is" make the formula =<prev number cell> ?

    I hope that's reasonably clear lol.....

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Formula "might slightly" change in Macro - how do I account for it?

    Try something like:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-15-2013
    Location
    Newquay, Cornwall
    MS-Off Ver
    Excel 2010
    Posts
    67

    Re: Formula "might slightly" change in Macro - how do I account for it?

    Thanks ragulduy!

    Seems Excel had already done it when I looked in the editor afterwards.

    Will be handy to remember though.

+ 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. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  2. Managing "delegated tasks" in an Outlook "Send Only" account
    By on_way_to_fame in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 08-13-2013, 12:21 AM
  3. Allow Macro to Change All Source Data Automatically "Each" to "All"
    By mlegge04 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-11-2012, 11:43 AM
  4. Running a Macro if Cell value equals "New Account"
    By jmswebdesign in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2007, 03:14 PM
  5. Replies: 0
    Last Post: 01-04-2006, 06:55 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