Ozgrid Excel Help Forums & Excel Best Practices


XL Templates | XL Add-ins | XL Training | XL Estimating | XL Scheduling | XL Recovery | XL Trading | XL Financial | XL Conversion | XL Charting


<
+ Reply to Thread
Results 1 to 10 of 10

Thread: Use cell contents as range value

  1. #1
    Join Date
    27th February 2003
    Posts
    16
    How do I substitute the value contained in Main!A263 for the "A57" below?

    Sub Macro1()

    Sheets("Main").Select
    Range("A57").Select

    End Sub

    A57 represents today's date in column A on the main sheet and its location is computed in a263

    Thanks in advance!
    Craig

  2. #2
    Join Date
    6th March 2003
    Location
    Pune,India
    Posts
    285
    Sub copy_value()
    Sheets("Main").Select
    Range("A57").Value = Range "A263").Value
    End Sub

    hope this helps
    Thanks: ~Yogendra

  3. #3
    Join Date
    6th March 2003
    Location
    Pune,India
    Posts
    285
    Sub copy_value()

    Range("a2").Copy
    Range("a5").PasteSpecial (xlPasteValues)
    End Sub
    Thanks: ~Yogendra

  4. #4
    Join Date
    27th February 2003
    Posts
    16
    This reply doesn't work. It places A57 in the cell A57.

    Sub copy_value()
    Sheets("Main").Select
    Range("A57").Value = Range ("A263").Value
    End Sub

    The contents of A263 is A57

    Thanks for the help!
    Craig

  5. #5
    Join Date
    6th March 2003
    Location
    Pune,India
    Posts
    285
    What is that did not work???

    I presumed that you want to paste whatever is the calculated value in cell A263 into cell A57.
    (that is what i could read from the text)


    Sorry if i have messed it up, but can you tell what is expected ??
    Thanks: ~Yogendra

  6. #6
    Join Date
    27th February 2003
    Posts
    16
    This macro is used on different worksheets to return the user to the main page on the row that corresponds with todays date. The cell I want to become active is A57 on the main page. I do not want to replace the value. There are 262 rows and when the user comes back to the "main" sheet he is only interested in the data in that row.
    Thanks!
    Craig
    Sorry for being so confusing

  7. #7
    Join Date
    6th March 2003
    Location
    Pune,India
    Posts
    285
    Sub active_today()
    Worksheets("Main").Range("A57").Select
    End Sub

    Hope this is what you expect
    Thanks: ~Yogendra

  8. #8
    Join Date
    27th February 2003
    Posts
    16
    Sub active_today()
    Worksheets("Main").Range("A57").Select
    End Sub

    produces error and doesn't run
    Thanks,
    Craig

  9. #9
    Join Date
    6th March 2003
    Location
    Pune,India
    Posts
    285
    Sorry for that!!!

    I tried it from immidiate window and it worked.

    BTW, try this

    Private Sub CommandButton1_Click()
    Application.Goto Reference:="Main!R55C1"
    End Sub


    Also attached the sheet
    Thanks: ~Yogendra

  10. #10
    Join Date
    6th March 2003
    Location
    Pune,India
    Posts
    285

    Create Excel dashboards quickly with Plug-N-Play reports.
    here is the file!

    May be i got up from the wrong side of the bed today

    Thanks: ~Yogendra

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

     

Possible Answers

  1. LOOKUP range based on contents of a cell
    By bolligra in forum EXCEL HELP
    Replies: 3
    Last Post: August 24th, 2006, 22:23
  2. Naming range based on cell contents
    By tbmbob in forum EXCEL HELP
    Replies: 2
    Last Post: July 7th, 2006, 02:39
  3. Replies: 5
    Last Post: December 30th, 2005, 00:33
  4. Replies: 4
    Last Post: November 1st, 2004, 05:11
  5. Using cell contents as a range name in a formula
    By andycart in forum EXCEL HELP
    Replies: 2
    Last Post: May 11th, 2003, 17:45

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