+ Reply to Thread
Results 1 to 12 of 12

Replace Fill Down, Complicated Equation

Hybrid View

thequiff Replace Fill Down,... 06-13-2012, 09:56 AM
rvasquez Re: Simple Macro Req. to... 06-13-2012, 09:59 AM
thequiff Re: Simple Macro Req. to... 06-13-2012, 10:43 AM
rvasquez Re: Simple Macro Req. to... 06-13-2012, 11:42 AM
thequiff Re: Simple Macro Req. to... 06-13-2012, 12:10 PM
WasWodge Re: Simple Macro Req. to... 06-13-2012, 12:25 PM
thequiff Re: Simple Macro Req. to... 06-14-2012, 04:42 AM
WasWodge Re: Replace Fill Down,... 06-14-2012, 06:51 AM
WasWodge Re: Replace Fill Down,... 06-14-2012, 07:10 AM
thequiff Re: Replace Fill Down,... 06-14-2012, 11:00 AM
WasWodge Re: Replace Fill Down,... 06-14-2012, 04:42 PM
WasWodge Re: Replace Fill Down,... 06-15-2012, 10:03 AM
  1. #1
    Valued Forum Contributor WasWodge's Avatar
    Join Date
    08-02-2010
    Location
    Hampshire,England
    MS-Off Ver
    Office 365 and Office 2010
    Posts
    882

    Re: Simple Macro Req. to replace Fill Down COMPLICATED EQUATION

    Another option. You haven't stated what you want to trigger the macro running so I haven't put any autorun in the program.
    Dim Sh As Worksheet
        Dim LR As Long
        For Each Sh In Worksheets(Array("Sheet2", "Sheet4", "Sheet9"))
            LR = Sh.Range("B" & Rows.Count).End(xlUp).Row
            Sh.Range("H1").Formula = _
            "=HYPERLINK(CONCATENATE(""file:///\\uranus\dckgen\Brands\Zoom\Brand - Zoom\Upload Photos\2012\week"",B1,""\BHS_WK"",B1,""_LR\"",E1,"".jpg""))"
            Sh.Range("H1").AutoFill Destination:=Sh.Range("H1:H" & LR), Type:=xlFillDefault
    Next Sh
    End Sub
    Last edited by WasWodge; 06-13-2012 at 01:26 PM.
    If my solution worked (or not) please let me know. If your question is answered then please remember to mark it solved

    Computers are like air conditioners. They work fine until you start opening windows. ~Author Unknown

  2. #2
    Registered User
    Join Date
    09-14-2011
    Location
    London
    MS-Off Ver
    Mac Office 2011
    Posts
    62

    Re: Simple Macro Req. to replace Fill Down COMPLICATED EQUATION

    I altered it to cover the exact sheets named, and I get a compile error.

    I changed the line
    For Each Sh In Worksheets(Array("Sheet2", "Sheet4", "Sheet9"))
    to
    For Each Sh In Worksheets(Array("BHSDB", "BurtonDB", "DaisyAndEveDB", "DivaDB", "DorothyPerkinsDB", "FreedomDB", "GinaTricotDB", "MatalanDB", "TopMan", "WallisDB"))
    Last edited by Paul; 06-14-2012 at 04:57 AM. Reason: Changed QUOTE tags to CODE tags.

+ 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