+ Reply to Thread
Results 1 to 2 of 2

Quick way to copy a block of text to a string variable during development.

  1. #1
    Registered User
    Join Date
    09-19-2011
    Location
    oc,ca
    MS-Off Ver
    Excel 2003
    Posts
    44

    Quick way to copy a block of text to a string variable during development.

    I have a text file with maybe 1000 chars of text and I'm trying to find a way to copy that text into a string variable during code dev. Is there a quick way to do this?
    I'm aware that I can open the text file during runtime and read it into the string variable but that's not how I want to do it.

    Thanks,

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Quick way to copy a block of text to a string variable during development.

    Hi

    Please Login or Register  to view this content.

    This code will read the contents of cell R8C8 ( Row 8 Column 8) ie H8 in sheet1 of workbook Book1 on the desktop.

    Enjoy.

+ 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. Replies: 4
    Last Post: 07-12-2013, 12:14 PM
  2. copy only fonts(text color) from one string of text to another string of text
    By JMJ123 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-06-2013, 04:22 AM
  3. [SOLVED] Split String in 3 Blocks of #s, Extract each Block to copy on specific Cell
    By david gonzalez in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-19-2013, 12:14 AM
  4. Replies: 6
    Last Post: 12-21-2012, 08:03 AM
  5. Object Variable or With Block Variable Not Set- Error on Another User Machine
    By dailem in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-01-2010, 09:28 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