Results 1 to 5 of 5

AND formula does not work inside the macro module

Threaded View

  1. #1
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    AND formula does not work inside the macro module

    Dear all, If I try to run below macro code inside the macro module then it does not work & showing

    Sub html()
    Lastrow = Sheets("html").Range("A" & Rows.Count).End(xlUp).Row
    Sheets("html").Range("B2").Resize(Lastrow).Formula = "=""<iframe style=""width: 100%; height: 370px;"" src=""http://www.exemple.com/graph/IntFinChart.aspx?TickerSymbol=""&D2&""&compname=""&A2&""%20%20-""&C2&""&se=BCS&TimeRange=180&ChartSize=H&Volume=1&VGrid=1&HGrid=1&LogScale=0&ChartType=CandleStick&Band=""frameborder=""0"" scrolling=""no""> </iframe>"
    End Sub
    Run-time error '1004'
    Application-defined or object-defined error

    but it works very well in the excel sheet if i use direct formula (manual)
    Last edited by nur2544; 12-30-2013 at 01: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] Formula not working when put inside VBA macro
    By Chrispelletier in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-21-2013, 10:00 AM
  2. [SOLVED] Assigning shortcut key inside the module
    By borgeklungerbo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-20-2012, 04:59 PM
  3. Replies: 2
    Last Post: 03-27-2009, 11:48 AM
  4. How to run a commandbar controled module inside a Macro
    By betty77 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-16-2006, 10:29 AM
  5. Macro inside a formula
    By loopy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-05-2005, 11:26 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