+ Reply to Thread
Results 1 to 3 of 3

Trying to use variables in .range function

  1. #1
    Registered User
    Join Date
    02-17-2012
    Location
    charlotte, nc
    MS-Off Ver
    Excel 2007
    Posts
    25

    Trying to use variables in .range function

    Hello,

    I'm having an issue trying to use variables in the .range function in vba. Below is the line I have in my code. I keep getting an error saying "Sub or Function not defined" and it highlights "Cells".

    Please Login or Register  to view this content.

    Any suggestions?

    Thanks

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Trying to use variables in .range function

    it oughta be
    Please Login or Register  to view this content.
    but you should not get an error on Cells
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    02-17-2012
    Location
    charlotte, nc
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Trying to use variables in .range function

    Thanks, that stopped the error. Although it is still not copying anything. That must be another issue I have in my code. Thanks again for your help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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