Results 1 to 4 of 4

Need Macro to run on 1 sheet only

Threaded View

mlanphier Need Macro to run on 1 sheet... 11-16-2018, 02:16 PM
6StringJazzer Re: Need Macro to run on 1... 11-16-2018, 02:26 PM
mlanphier Re: Need Macro to run on 1... 11-16-2018, 03:52 PM
6StringJazzer Re: Need Macro to run on 1... 11-16-2018, 07:36 PM
  1. #1
    Registered User
    Join Date
    11-16-2018
    Location
    Tulsa,Ok
    MS-Off Ver
    Office 2016
    Posts
    2

    Exclamation Need Macro to run on 1 sheet only

    Hello, I am currently using this macro on sheet 1:
    Sub Transposer()
        Dim lngR As Long
        Dim lngC As Long
        
        lngC = 2
        
        For lngR = 1 To Cells(Rows.Count, "A").End(xlUp).Row
            If Not IsNumeric(Cells(lngR, "A").Value) Then
                lngC = lngC + 1
                Cells(1, lngC).Value = Cells(lngR, "A").Value
            Else
                Cells(Rows.Count, lngC).End(xlUp)(2).Value = Cells(lngR, "A").Value
            End If
        Next lngR
    Range("A:B").EntireColumn.Delete
    End Sub
    to turn vertical columns of data, to horizontal columns of data. When doing so it will mess up formulas I have on sheet 2. Any ideas on how to solve this problem?
    Last edited by 6StringJazzer; 11-16-2018 at 02:22 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Macro updating after selecting another sheet and back to Macro enabled sheet?
    By Imran Magsi in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-29-2016, 04:38 AM
  2. [SOLVED] Macro to copy data from a master sheet to separate sheet as per date using a macro
    By tmaster81 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-23-2014, 08:05 AM
  3. Macro to gnereate new sheet which includes the macro to generate a new sheet
    By jocanon in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-27-2013, 05:15 PM
  4. [SOLVED] Macro running on active sheet instead of sheet defined in macro
    By davegscott in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-19-2013, 02:04 PM
  5. [SOLVED] Macro to Copy Data from one Sheet A to Sheet B based on value in cell on sheet A
    By scass in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-11-2012, 07:21 PM
  6. Replies: 1
    Last Post: 07-30-2012, 02:35 PM
  7. [SOLVED] When sheet is activated, execute macro in other sheet and return to sheet
    By timtim89 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-16-2012, 10:50 AM

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