+ Reply to Thread
Results 1 to 3 of 3

Dim worksheet name issue

  1. #1
    Forum Contributor
    Join Date
    01-14-2004
    Location
    India
    MS-Off Ver
    365
    Posts
    264

    Dim worksheet name issue

    Hello Team
    I have a worksheet name called "ROW DATA"
    When I declare Dim ROW DATA as worksheet, I am getting error and I know it is because I have two words in my sheet name. How can I declare the DIM if I have more than one word in the sheet name.
    Please help me
    Thanks
    Last edited by SMILE; 12-23-2019 at 02:12 PM.
    Appreciate clicking the * Add Reputation button on your left side, if you want say thanks to me

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Dim worksheet name issue

    You seem to be confusing the variable name with the worksheet name.

    You can name your variable anything you like, but it may not contain a space.

    Please Login or Register  to view this content.
    Alternatively, change the worksheet codename (again, without using spaces) then you can reference that object directly.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,461

    Re: Dim worksheet name issue

    Maybe like this:
    Please Login or Register  to view this content.
    Then refer to RowData in your code.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. combobox issue in worksheet
    By Deepa Shrestha in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-30-2013, 05:15 AM
  2. Worksheet Issue
    By omgeokid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-03-2011, 12:17 PM
  3. Linking a worksheet to another worksheet issue
    By ready2drum in forum Excel General
    Replies: 7
    Last Post: 11-09-2010, 10:34 AM
  4. WorkSheet Issue
    By shivendra in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 11-11-2008, 08:37 AM
  5. Worksheet Links Issue
    By markw1101 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-18-2007, 09:41 AM
  6. Help with Worksheet issue
    By Scott W in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-14-2006, 05:10 PM
  7. Worksheet copy issue
    By TommySzalapski in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-25-2005, 04:41 PM
  8. [SOLVED] Re Worksheet Change Issue
    By DocuMike in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-24-2005, 03:06 AM

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