+ Reply to Thread
Results 1 to 5 of 5

Scroll Column in Available Coding

  1. #1
    Registered User
    Join Date
    02-25-2014
    Location
    Turkey
    MS-Off Ver
    Excel 2010
    Posts
    77

    Scroll Column in Available Coding

    Hi,
    l add formula for single column with macro. How do I add other columns at the same time?

    Please Login or Register  to view this content.
    This encoding process from B3 to B202. l want to make this coding for C3-C202,D3-D202,E3-E202,...,DN3-DN202. Of course, at this stage, Column letter is changing to the right in the formula.

    in B3 "=SUM('iletim'!H" & j & ":H" & j + 14 & ")+SUM('radyasyon'!F" & j & ":F" & j + 14 & ")+SUM('diger'!K" & a & ":K" & a + 10 & ")"

    in C3 "=SUM('iletim'!I" & j & ":I" & j + 14 & ")+SUM('radyasyon'!G" & j & ":G" & j + 14 & ")+SUM('diger'!L" & a & ":L" & a + 10 & ")"

    in D3 "=SUM('iletim'!J" & j & ":J" & j + 14 & ")+SUM('radyasyon'!H" & j & ":H" & j + 14 & ")+SUM('diger'!M" & a & ":M" & a + 10 & ")"

    Continues until to DN3.

    Regards.
    Sorry my language.

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Scroll Column in Available Coding

    Duplicate post, saved twice
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Scroll Column in Available Coding

    Have a try yourself, look at your own code

    .Range("B" & i)

    So something similar to that. Or you could use offset ...

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Scroll Column in Available Coding

    Personally I'd hold a master formula above your data in a named cell say 'MyFormula'. Make sure the formula when copied across from B3:DN202 gives the right results. A quick look suggests that the column references should be relative. And for picking up the right J value use

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    in the sum formula.


    Then in your macro simply use

    Please Login or Register  to view this content.
    Avoid loops for this sort of stuff wherever possible. With large ranges they are usually very slow.
    Last edited by Richard Buttrey; 09-12-2014 at 05:23 AM.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Registered User
    Join Date
    02-25-2014
    Location
    Turkey
    MS-Off Ver
    Excel 2010
    Posts
    77

    Re: Scroll Column in Available Coding

    Thank you so much.
    Nice Day.

+ 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. Replies: 2
    Last Post: 10-30-2013, 06:03 PM
  2. Replies: 1
    Last Post: 07-03-2013, 02:21 PM
  3. Coding multiple text in Excel column, return value to adjacent column
    By Tania123 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-06-2012, 12:31 PM
  4. Controlling Scroll Bar with VBA Coding
    By PosseJohn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-09-2010, 06:27 PM
  5. can I fix 1 column & scroll across others?
    By smurphytoo in forum Excel General
    Replies: 1
    Last Post: 07-13-2006, 05: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