Closed Thread
Results 1 to 4 of 4

Simply VBA code and make it dynamic

  1. #1
    Registered User
    Join Date
    01-09-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    25

    Simply VBA code and make it dynamic

    Sub Call_times()
    '
    ' Call_times Macro
    ' Copy and paste VLOOKUP to pull call times into GP Report
    '

    '
    Range("U4").Select
    ActiveCell.FormulaR1C1 = _
    "=VLOOKUP(RC[-18],'[Call times - Yesterday.xls]Recovered_Sheet1'!R1C1:R400C11,11,0)"
    Range("V4").Select
    ActiveCell.FormulaR1C1 = _
    "=VLOOKUP(RC[-19],'[Call times - Five days.xls]Recovered_Sheet1'!R1C1:R400C11,11,0)"
    Range("W4").Select
    ActiveCell.FormulaR1C1 = _
    "=VLOOKUP(RC[-20],'[Call times - Month.xls]Recovered_Sheet1'!R1C1:R400C11,11,0)"
    Range("U4:W4").Select
    Selection.AutoFill Destination:=Range("U4:W22"), Type:=xlFillDefault
    Range("U4:W22").Select
    Selection.Copy
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False
    Range("U4").Select
    End Sub

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Simply VBA code and make it dynamic

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    01-09-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Simply VBA code and make it dynamic

    Hi Fotis, I posted this accidentally before I'd finished the post. I tried deleting it but I wasn't sure how. How can I get rid of this?

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Simply VBA code and make it dynamic

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. I Want to know how I can make this formula into vba code for dynamic cell address
    By dgdgdg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-06-2013, 02:41 PM
  2. [SOLVED] Make Static code Dynamic
    By Rick_Stanich in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-05-2012, 11:09 AM
  3. simply this code?
    By khalid79m in forum Excel General
    Replies: 1
    Last Post: 12-28-2006, 11:50 AM
  4. is there a way to make dates simply be read as text?
    By tweety127 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-06-2006, 02:50 PM
  5. VBA programming: Simply trying to select cell-- or not so simply?
    By whiteliyl_111 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-10-2005, 01:18 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