+ Reply to Thread
Results 1 to 2 of 2

VBA : Need help for macro look at first character in a cell and copy.

  1. #1
    Registered User
    Join Date
    03-07-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    1

    VBA : Need help for macro look at first character in a cell and copy.

    Hey all,

    My brain is hurting with this one, my VBA knowledge has been mostly "recording" of macros and then trying to make it bit more useable so my knowledge isn't that great at the moment. My next challenge was to create a macro that looks at another sheet copies over sheets (Done that bit) and then removes all formatting / merged cells (done that bit as well) and finally look at all of the cells for lines beginning with a number for instance : "0H00" or "20HHH", so if it 'finds' this it needs to copy this and the cell below into another sheet.

    I have tried a "left" command but it always returns 'False' no matter what but also that doesn't help in the long run anyway as a formula doesn't make the macro copy over the info.

    Any help or nudges would be greatly appreciated or would it be easier to do some kind of vlookup?

    Kindest Regards,

    Brack

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: VBA : Need help for macro look at first character in a cell and copy.

    Hello and Welcome to Forum !
    can you please upload a sample book with atleast 10-15 rows of sample data with results expected to work with.

    To attach a go to advanced tab--> select Paper clip icon or Manage attachment.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

+ 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. [SOLVED] Copy cell and paste in row below with added character to end of cell
    By menmine5 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-25-2013, 12:56 PM
  2. If cell = x (mixed with other character in a cell) then copy paste row
    By makko in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-26-2012, 03:51 AM
  3. Macro to find character and delete all text in cell after the character
    By SpencerRichman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2012, 06:08 PM
  4. Copy with offset cell containing particular character
    By Macuil0101 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-24-2011, 05:44 AM
  5. Copy partial cell character format(s) from one cell to another - an example
    By aztecbrainsurgeon@yahoo.com in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-05-2005, 04:06 PM

Tags for this Thread

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