+ Reply to Thread
Results 1 to 8 of 8

How to carry over freeze panes function into temporary file from VBA

  1. #1
    Registered User
    Join Date
    09-20-2013
    Location
    Hartland, WI
    MS-Off Ver
    Excel 2013 Professional Plus
    Posts
    73

    How to carry over freeze panes function into temporary file from VBA

    I have a code below that works great for sending different ranges from the same sheet to different email addresses. It creates a temporary file as the attachment in the email.

    One thing that would be great to have is to be able to freeze panes of the temporary file headers. There are the same headers at the start of each range, and it would be nice if each row of headers would have the freeze panes function in each temporary file.

    Is this possible? If not for multiple files, can the first row of headers (row 1) follow over to the first temporary file?

    Any help would be greatly appreciated.

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: How to carry over freeze panes function into temporary file from VBA

    I think you have forgotten your code?
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  3. #3
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: How to carry over freeze panes function into temporary file from VBA

    It creates a temporary file as the attachment in the email.
    You could use a template that had the freeze panes.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  4. #4
    Registered User
    Join Date
    09-20-2013
    Location
    Hartland, WI
    MS-Off Ver
    Excel 2013 Professional Plus
    Posts
    73

    Re: How to carry over freeze panes function into temporary file from VBA

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-20-2013
    Location
    Hartland, WI
    MS-Off Ver
    Excel 2013 Professional Plus
    Posts
    73

    Re: How to carry over freeze panes function into temporary file from VBA

    Creating a template would probably work for just one email, but could you get that to work when many emails are created from many ranges in the file? This could end up creating 600 emails, and in my mind, you would need 600 templates for that. Is there a way around that?

  6. #6
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: How to carry over freeze panes function into temporary file from VBA

    Perhaps simply:
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    09-20-2013
    Location
    Hartland, WI
    MS-Off Ver
    Excel 2013 Professional Plus
    Posts
    73

    Re: How to carry over freeze panes function into temporary file from VBA

    Adding that verbatim did not freeze panes in my created files, but when I changed that
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    The freeze panes followed through to the temporary file, however, it started in row 18. So 18 was stuck while 19 and below could scroll. I am still new to this, is there a way to freeze at row 2, so rows 1 and 2 are stuck in each file?

  8. #8
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: How to carry over freeze panes function into temporary file from VBA

    That should be achieved with:
    Please Login or Register  to view this content.
    but it seems your code is not behaving.

+ 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. Freeze Panes - Can I freeze a specific set of cells?
    By Rosco88 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-15-2013, 09:17 AM
  2. [SOLVED] Freeze panes function does not work?
    By WTF in forum Excel General
    Replies: 3
    Last Post: 10-21-2011, 10:36 AM
  3. Replies: 3
    Last Post: 11-27-2006, 05:24 PM
  4. [SOLVED] Excel 2003 freeze panes won't freeze top row only
    By macbone2002 in forum Excel General
    Replies: 1
    Last Post: 05-31-2006, 11:10 AM
  5. Freeze Panes-When freeze panes is employed it leave a black line
    By peter.thompson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-31-2006, 01:40 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