1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Excel VB Programming

Discussion in 'Business Applications' started by Bob W, May 2, 2006.

Thread Status:
Not open for further replies.
  1. Bob W

    Bob W Thread Starter

    May 2, 2006
    I am trying to change the D53 cell reference in this statement to a variable defined as integer, without success. I would be willing to change the whole range definition to a variable if necessary. Any suggestions would be appreciated!!

    ActiveChart.SetSourceData Source:=Sheets("WorkSheet").Range("A29:d53"), _
  2. bomb #21

    bomb #21

    Jul 1, 2005
    Welcome to the board, Bob W.

    Where will the values come from?

    x = Application.InputBox("How many rows?", "Size chart range")
    y = Application.InputBox("How many columns?", "Size chart range", 4)
    ActiveChart.SetSourceData Source:=Sheets("WorkSheet").Range("A29").Resize(x, y), _

    , perhaps.

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/464319

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice