+ Reply to Thread
Results 1 to 4 of 4

how to fill cells after using offset

  1. #1
    Forum Contributor
    Join Date
    07-23-2012
    Location
    hyderabad
    MS-Off Ver
    Excel 2016
    Posts
    210

    how to fill cells after using offset

    Hi,

    in my coding i am in cell "A1" now i used offset to move the cursor to "D1". now i want to fill all the cells from current cell to my previous cell.

    can someone please help me.

    regards,
    vimala

  2. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,784

    Re: how to fill cells after using offset

    Perhaps

    Please Login or Register  to view this content.
    Alf

  3. #3
    Forum Contributor
    Join Date
    07-23-2012
    Location
    hyderabad
    MS-Off Ver
    Excel 2016
    Posts
    210

    Re: how to fill cells after using offset

    Hi,

    My code follows as below:

    Sub test()

    Range("c1").Select

    ActiveCell.Offset(0, 3).Select

    ActiveCell.Offset(3,0).Select

    End Sub

    and your coding is filling from A1.... so I cant fix the range for filling.. whenever i moved from one cell to another cell on my sheet it should fill that path in a color.

    So in the above coding in first move one color and the second move another color.

    please help me on this.

  4. #4
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,784

    Re: how to fill cells after using offset

    Well still not sure I do understand your problem properly but either this one or the next one?
    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    Alf

+ 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. Skip x cells and fill (Fill/create weekly average from 7 days and fill down)
    By tunafishes in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-18-2016, 03:43 AM
  2. Auto fill box and offset activecell
    By kat14 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-09-2015, 07:08 PM
  3. Select offset variable offset cells
    By papasmurfuo9 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-02-2014, 06:12 AM
  4. [SOLVED] Using VLookup and offset to fill columns
    By Gr8tDaze in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-01-2013, 01:56 PM
  5. Having trouble : Offset Fill date from Sheet - 1
    By technocrawl in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2011, 08:43 AM
  6. Offset and fill
    By duskdrums in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-18-2006, 08:58 PM
  7. Search, Find, and Fill in Offset
    By Paige in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-20-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