Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. excel macros

excel macros

Scheduled Pinned Locked Moved Visual Basic
questionjson
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lhahehal
    wrote on last edited by
    #1

    hi there , say i have a few tables ... is it possible to search for the data i want by using a form .. ?? i have done so by using filters .. but is there other ways of doing it ?? 1 more thing .. i can only filter by the data in the columns , but what if i want to display only the few columns i select in the form ... how do i go about it ... pnl.text , pf.text and product.text are combo boxes .. the rest of the combo boxes contain columns as the data not rows ... If pnl.Text = "ON" Then Range("B6:CJ178").Select Selection.AutoFilter Field:=1, Criteria1:=pf.Text Selection.AutoFilter Field:=2, Criteria1:=product.Text ElseIf pnl.Text = "OFF" Then Range("B180:CJ291").Select Selection.AutoFilter Field:=1, Criteria1:=pf.Text Selection.AutoFilter Field:=2, Criteria1:=product.Text ElseIf pnl.Text = "ON & OFF" Then Range("B293:CJ504").Select Selection.AutoFilter Field:=1, Criteria1:=pf.Text Selection.AutoFilter Field:=2, Criteria1:=product.Text End If

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups