+ Reply to Thread
Results 1 to 4 of 4

How to run auto press 'Enter' key on certain cell before printing?

  1. #1
    Forum Contributor
    Join Date
    03-04-2015
    Location
    Jakarta
    MS-Off Ver
    15
    Posts
    154

    Lightbulb How to run auto press 'Enter' key on certain cell before printing?

    Please, help me. How to auto press Enter Key before printing from VBA. When the print button clicked, auto press Enter key run then printout. And auto press runs before next loop.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: How to run auto press 'Enter' key on certain cell before printing?

    I think what you need is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Try a forum search on SendKeys to find out more information.

    BSB

  3. #3
    Forum Contributor
    Join Date
    03-04-2015
    Location
    Jakarta
    MS-Off Ver
    15
    Posts
    154

    Re: How to run auto press 'Enter' key on certain cell before printing?

    How to run
    Application.SendKeys "{F2}"
    Application.SendKeys "{ENTER}"
    on range C1?

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: How to run auto press 'Enter' key on certain cell before printing?

    This code would perform that. Amend the sheet name to suit.
    Please Login or Register  to view this content.
    What is it you're actually trying to do? There may be a better method than using SendKeys.
    Are you recalculating just one cell?

    BSB

+ 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] Vlookup not working until i press in enter in cell
    By king10001 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-08-2021, 12:13 AM
  2. [SOLVED] Need a macro to automatically select a cell and press enter every second
    By coringa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-03-2016, 12:11 AM
  3. Copy cell data to webform and press ENTER
    By randooom in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-08-2014, 05:53 PM
  4. Replies: 10
    Last Post: 07-19-2013, 05:02 AM
  5. Cell gives incorrect value when I press ENTER.
    By Matthew.Newlove in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 04-25-2012, 10:58 AM
  6. Cannot view cell content until I press enter
    By AnisKhan in forum Excel General
    Replies: 4
    Last Post: 06-09-2006, 01:10 PM
  7. [SOLVED] must press enter 2x to move cell focus
    By Lynn in forum Excel General
    Replies: 0
    Last Post: 03-18-2005, 03: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