+ Reply to Thread
Results 1 to 3 of 3

Store Cells Value VBA

  1. #1
    Registered User
    Join Date
    06-24-2015
    Location
    Ohio
    MS-Off Ver
    Office 2013
    Posts
    22

    Store Cells Value VBA

    Hi,

    I am trying to store a cell's value.

    Dim sheet As String
    sheet = Cells(4, answer).Value

    The value of this cell is a date 6/29/2015 for example.
    However, the formatting on this cell reads 6-29-15.

    The script is copying the 6/29/15, Is there a way to store the 6-29-15.

    Thanks!

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Store Cells Value VBA

    Please Login or Register  to view this content.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    06-24-2015
    Location
    Ohio
    MS-Off Ver
    Office 2013
    Posts
    22

    Re: Store Cells Value VBA

    Ah so simple! Thanks a bunch!

+ 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. store all the values of cells which are in range
    By starlev in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-23-2015, 05:33 PM
  2. store cells value as a string variable
    By sebdor in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-02-2014, 03:31 PM
  3. Replies: 4
    Last Post: 06-18-2014, 12:19 PM
  4. [SOLVED] store cells based on color
    By shart2k12 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-14-2013, 03:34 PM
  5. [SOLVED] Store consecutive cells range
    By fgq in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-14-2013, 09:51 AM
  6. VBA how to store multiple value into a single cells
    By gingank in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-11-2013, 03:32 AM
  7. How to store Cells(1,1) into variable
    By KeyCode in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-01-2010, 05:10 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