+ Reply to Thread
Results 1 to 3 of 3

REALLY Basic question on variable syntax...

  1. #1
    Registered User
    Join Date
    09-27-2012
    Location
    Monticello, Florida
    MS-Off Ver
    Excel 2010
    Posts
    12

    Angry REALLY Basic question on variable syntax...

    Obviously I'm a newbie, so I'd appreciate learning how I'm messing up this code:

    Please Login or Register  to view this content.
    I'm simply trying to delete anything in the rows from the end of my last data through row 201. I keep getting a Type mismatch error on the last row. I assume I'm not entering the variable myRow correctly - maybe I'm missing some apostrophy's or quotation marks???

    Man I hate being dumb at something!

    Thanks in advance!

    Mike
    Last edited by Accountant II; 09-27-2012 at 04:36 PM. Reason: Entered code tags

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: REALLY Basic question on variable syntax...

    Mike,

    Welcome to the forum! In the future, please wrap your code in code tags, link in my sig for how.
    As for your question, "myRow:201" is a string. To use the variable, you need to concatenate it to the ":201" using the & symbol:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    09-27-2012
    Location
    Monticello, Florida
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: REALLY Basic question on variable syntax...

    Wow - thanks - I knew it was something really simple!! I'll be sure to read up on the code tags!!!

    Thanks again!

    Mike


+ 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