Consulting

Results 1 to 2 of 2

Thread: Loop for substitution

  1. #1
    VBAX Regular
    Joined
    Jan 2017
    Location
    Warsaw
    Posts
    70
    Location

    Loop for substitution

    Hey guys!


    I have used concatenation to create a path which, depending on the month, references a specific cell in another table (= 'PATH ...... TBL! A1)
    Unfortunately, these paths are
    not active until I replace the "=" with a "=".I would like to automate this somehow by means of a button.
    That I set in F2 a number which defines the calendar week and thus also the area.When pressing the button, all cells in C: C should be replaced by "=", which contain the corresponding calendar week in B: B.
    Does anyone have an idea for this?

    I've already used the recorder, but I can not develop a helpful approach.


    Attached is an example file.
    Example.xlsx

    greeting

  2. #2
    Moderator VBAX Master georgiboy's Avatar
    Joined
    Mar 2008
    Location
    Kent, England
    Posts
    1,192
    Location
    Not quite sure what you are after here but, if you are making a reference to a cell using Concatenation or just & then you will need to use the indirect function.

    =Indirect(“A” & 1)

    maybe even hyperlink:

    =Hyperlink(path)

    hope this helps
    Last edited by georgiboy; 01-29-2018 at 12:19 PM. Reason: ɹoɹɹǝ pɹɐoqʎǝʞ
    Click here for a guide on how to add code tags
    Click here for a guide on how to mark a thread as solved

    Excel 365, Version 2403, Build 17425.20146

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •