+ Reply to Thread
Results 1 to 3 of 3

For Each c In ActiveSheet.UsedRange.SpecialCells(xlCellTypeConstants)

  1. #1
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,014

    For Each c In ActiveSheet.UsedRange.SpecialCells(xlCellTypeConstants)

    Hi experts,
    1- Open enclosed file.
    2- Select "TestSheet".
    3- Run Macro1.
    4- Understand what Macro1 is doing. (Macro1 is needed improving)

    5- My question is how I can convert "TestSheet" to "TargetSheet" ?

    Best wishes.
    Last edited by HerryMarkowitz; 01-06-2014 at 10:21 PM.
    Sub DontForgetThese()
         If Your thread includes any code Then Please use code tags...
         If Your thread has been solved Then Please mark as solved...
         If Anybody has helped to you Then Please add reputation...
    End Sub

  2. #2
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,014

    Re: For Each c In ActiveSheet.UsedRange.SpecialCells(xlCellTypeConstants)

    Solved... Sorry
    Please Login or Register  to view this content.

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: For Each c In ActiveSheet.UsedRange.SpecialCells(xlCellTypeConstants)

    hi there again, Herry. what kind of improving you need? to not touch column A? basically, the macro is doing this (you can try in excel).
    1. press CTRL + G -> Special -> Constants -> OK
    2. any cell selected will be referred to the selected row 1 of that column

    you could change point 1 slightly to just choose Numbers. you noticed in the GoTo Special Window, there are checkboxes you can deselect. so the code to choose just numbers is:
    Please Login or Register  to view this content.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

+ 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] Is it possibe to error trap Range.SpecialCells(xlCellTypeConstants) if found > 1?
    By kjy1989 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-04-2013, 07:34 PM
  2. [SOLVED] .SpecialCells(xlCellTypeConstants) method quirky behavior in Exel 2010
    By VBA Grunt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2013, 12:01 PM
  3. Activesheet.UsedRange - Type Mismatch
    By LB79 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-23-2009, 11:08 AM
  4. selecting ActiveSheet.UsedRange
    By Gary''s Student in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-12-2006, 11:35 AM
  5. how to reset the activesheet usedrange value
    By Gary Keramidas in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-28-2005, 11:05 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