Results 1 to 9 of 9

range command issue?

Threaded View

  1. #1
    Registered User
    Join Date
    04-16-2012
    Location
    st pete, florida
    MS-Off Ver
    Excel 2007
    Posts
    6

    range command issue?

    I have a macro in excel that works.

    Sub jim()
    
    Range("$A$1").CurrentRegion.Select    
        
        Selection.RowHeight = 13
        Selection.Font.Bold = True
    …etc.

    If I open a csv and run this macro it selects the seen data and then later does stuff to it.

    *****

    when i try to turn this into a program i get an error.


    oExcel = CreateObject([Excel.Application])
    oExcel.Visible = .T.
    
    osheet = oexcel.workbooks.open("K:\wellcarestuff\All Data Files\test.xls")
    
    
          Range("$A$1").CurrentRegion.Select  ' <<<===   get an error here?
    would appreciate any ideas on what i'm doing wrong.

    thanks.

    jim

    Moderator's note: Please read our rules, #3 says code tags are required. I have added them for you because you are a new user. --6StringJazzer
    Last edited by 6StringJazzer; 12-23-2013 at 03:08 PM. Reason: code tags

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro/Command button - cell reference issue?
    By mhblake in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-28-2012, 02:41 PM
  2. VBA to issue click command
    By randell.graybill in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-10-2010, 02:20 AM
  3. VBA Userform Issue - Command Button / msg Box
    By teeks in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-07-2010, 11:37 AM
  4. Is an IF command the best to resolve this issue?
    By dellf in forum Excel General
    Replies: 1
    Last Post: 09-25-2009, 11:34 AM
  5. LOOKUP Command Issue
    By VegasBurger in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-02-2006, 02:40 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