+ Reply to Thread
Results 1 to 2 of 2

Formatting and referring to secondary Workbook

Hybrid View

FranktheBank Formatting and referring to... 10-02-2015, 01:22 PM
FranktheBank Re: Formatting and referring... 10-09-2015, 01:23 PM
  1. #1
    Registered User
    Join Date
    09-27-2012
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    62

    Angry Formatting and referring to secondary Workbook

    Hello All,

    Here's the problem: I have one main workbook called Recon0110 (this part changes everyday). I want a macro that will open three other Excel sheets, reformat some of the columns and finally will take certain sections from each and paste them into my original Recon0110.

    So far I have:
    Sub New_Entry()
    '
    ' New_Entry Macro
    '
    Dim New_Reconciliation As String
    Dim Cadet As String
    Dim Final_Reconciliation As String
    
    If MsgBox("Do you want to Reconcile the 601 for " & Format(Now(), "mmmm") & " " & Day(Date) & "?", vbYesNo) = vbYes Then
        Worksheets(2).Range("a16").Copy
        Worksheets(1).Range("Update").PasteSpecial xlPasteValues
            Range("FreeBalance_Total").Select
            Dim J As Long
            For J = 1 To 25
            ActiveCell.Offset(-1, 0).EntireRow.Insert
            Next J
                Worksheets(2).Range("b19:b24").Copy
                Worksheets(2).Range("J19:J24").PasteSpecial xlPasteValues
                     ActiveWorkbook.SaveAs Range("New_Reconciliation"), FileFormat = 52
        Workbooks.Open Filename:=Range("Cadet").Value
        Sub New_Entry()
    '
    ' New_Entry Macro
    '
    Dim New_Reconciliation As String
    Dim Cadet As String
    Dim Final_Reconciliation As String
    
    If MsgBox("Do you want to Reconcile the 601 for " & Format(Now(), "mmmm") & " " & Day(Date) & "?", vbYesNo) = vbYes Then
        Worksheets(2).Range("a16").Copy
        Worksheets(1).Range("Update").PasteSpecial xlPasteValues
            Range("FreeBalance_Total").Select
            Dim J As Long
            For J = 1 To 25
            ActiveCell.Offset(-1, 0).EntireRow.Insert
            Next J
                Worksheets(2).Range("b19:b24").Copy
                Worksheets(2).Range("J19:J24").PasteSpecial xlPasteValues
                     ActiveWorkbook.SaveAs Range("New_Reconciliation"), FileFormat = 52
        Workbooks.Open Filename:=Range("Cadet").Value
        Workbooks("Cadet").Sheets("FB_Detail_Report").Activate
        Columns("A:H").EntireColumn.AutoFit
        Columns("F:H").NumberFormat = "#,##0.00_);(#,##0.00)".Sheets("FB_Detail_Report").Activate
        Columns("A:H").EntireColumn.AutoFit
        Columns("F:H").NumberFormat = "#,##0.00_);(#,##0.00)"
    This reformats my original fine and opens the secondary Workbooks("Cadet") just fine, but it will not format Workbooks("Cadet") as per the Autofit and Numerical formating.

    I hope once I get this fixed I should be able to do the same with my other two workbooks that I will need to format similarly.

    As ALWAYS a BIG Thanks in advance

  2. #2
    Registered User
    Join Date
    09-27-2012
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    62

    Re: Formatting and referring to secondary Workbook

    SOLVED Thanks

+ 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] referring to workbook
    By Fabrizio in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-21-2006, 12:55 PM
  2. RE: referring to workbook
    By Jim Thomlinson in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-21-2006, 12:40 PM
  3. RE: referring to workbook
    By Jim Thomlinson in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-21-2006, 12:35 PM
  4. RE: referring to workbook
    By comparini3000 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-21-2006, 12:35 PM
  5. referring to workbook
    By Fabrizio in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-21-2006, 12:35 PM
  6. RE: referring to workbook
    By Jim Thomlinson in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-21-2006, 12:32 PM
  7. [SOLVED] RE: referring to workbook
    By comparini3000 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-21-2006, 12:32 PM
  8. [SOLVED] referring to workbook
    By Fabrizio in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-21-2006, 12:32 PM

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